Keep the Selection Critera for Effective Dating the Job table.
Click on this selection and convert it to SQL.
Click on the SQL Selection Critera to get into the SQL editor.
Add to the second part of the SQL AND "PS_JOB"."ACTION" IN ('HIR','PAY')
The SQL Selection for the Effective Dating of JOB will look like this:
("PS_JOB"."EFFSEQ"= (
SELECT MAX("INNERALIAS"."EFFSEQ")
FROM "PS_JOB" INNERALIAS
WHERE "INNERALIAS"."EMPLID" = "PS_JOB"."EMPLID"
AND "INNERALIAS"."EMPL_RCD_NBR" = "PS_JOB"."EMPL_RCD_NBR"
AND "INNERALIAS"."EFFDT" = "PS_JOB"."EFFDT")
AND
"PS_JOB"."EFFDT" = (
SELECT MAX("INNERALIAS"."EFFDT")
FROM "PS_JOB" INNERALIAS
WHERE "INNERALIAS"."EMPLID" = "PS_JOB"."EMPLID"
AND "INNERALIAS"."EMPL_RCD_NBR" = "PS_JOB"."EMPL_RCD_NBR"
AND "INNERALIAS"."EFFDT" <= SYSDATE)
[!]AND "PS_JOB"."ACTION" IN ('HIR','PAY')[/!])
Specializing in ReportSmith Training and Consulting