-- [PSIMSQQ From_Date(Format:mm/dd/yyyy)] 00:00:00
-- [PSIMSQQ To_Date(Format:mm/dd/yyyy)] 23:59:59
-- [PSIMSQQ Checkbox(Format: By Arrest Date)]
SELECT CASE
WHEN '[+PSIMSQQ Checkbox(Format: By Arrest Date)]' = 'on' AND (cpc.arrestdate >= '[+PSIMSQQ From_Date(Format:mm/dd/yyyy)] 00:00:00' or cpc.arrestdate <= '[+PSIMSQQ To_Date(Format:mm/dd/yyyy)] 23:59:59')
THEN cpc.arrestdate
ELSE cm.occurredstartdate
END as Date, *
FROM casemaster cm, CasePersonCharges cpc
-- [PSIMSQQ From_Date(Format:mm/dd/yyyy)] 00:00:00
-- [PSIMSQQ To_Date(Format:mm/dd/yyyy)] 23:59:59
-- [PSIMSQQ Checkbox(Format: By Arrest Date)]
SELECT CASE
WHEN '[+PSIMSQQ Checkbox(Format: By Arrest Date)]' = 'on' AND (cpc.arrestdate >= '[+PSIMSQQ From_Date(Format:mm/dd/yyyy)] 00:00:00' or cpc.arrestdate <= '[+PSIMSQQ To_Date(Format:mm/dd/yyyy)] 23:59:59')
THEN cpc.arrestdate
ELSE IF cm.occurredstartdate >= '[+PSIMSQQ From_Date(Format:mm/dd/yyyy)] 00:00:00' or cm.occurredstartdate <= '[+PSIMSQQ To_Date(Format:mm/dd/yyyy)] 23:59:59'
THEN cm.occurredstartdate
ELSE ''
END as Date, *
FROM casemaster cm, CasePersonCharges cpc
-- [PSIMSQQ From_Date(Format:mm/dd/yyyy)] 00:00:00
-- [PSIMSQQ To_Date(Format:mm/dd/yyyy)] 23:59:59
-- [PSIMSQQ Checkbox(Format: By Arrest Date)]
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE