I'm trying to pull a list of new hires, and some have a future hire date (3/24/08). The future dated employees are not showing up on my report. Any suggestions? I'm using some very simple simple selection variables:
Job.Action = HIR
Job.EffDt >= 2/29/08
Here is my SQL:
SELECT DISTINCT
"PS_PERSONNEL"."EMPLID", "PS_PERSONNEL"."FIRST_NAME",
"PS_PERSONNEL"."MIDDLE_NAME", "PS_PERSONNEL"."LAST_NAME",
"PS_PERSONNEL"."STREET1", "PS_PERSONNEL"."STREET2",
"PS_PERSONNEL"."CITY", "PS_PERSONNEL"."STATE",
"PS_PERSONNEL"."ZIP", "PS_PERSONNEL"."SSN",
"PS_PERSONNEL"."SEX", "PS_PERSONNEL"."BIRTHDATE",
"PS_PERSONNEL"."HIRE_DT", "PS_PERSONNEL"."PAYGROUP",
"PS_PERSONNEL"."EMPL_STATUS", "PS_EMPLOYMENT"."HIRE_DT",
"PS_JOB"."ACTION", "PS_JOB"."ACTION_DT", "PS_JOB"."EFFDT",
"PS_JOB"."EMPLID"
FROM
"PS_PERSONNEL", "PS_EMPLOYMENT", "PS_JOB"
WHERE
((("PS_JOB"."ACTION" = 'HIR') AND
("PS_JOB"."EFFDT" >= TO_DATE('2008-02-29', 'YYYY-MM-DD'))))
AND
("PS_PERSONNEL"."EMPLID" = "PS_JOB"."EMPLID" ) AND ("PS_PERSONNEL"."EMPLID" = "PS_EMPLOYMENT"."EMPLID" )
ORDER BY
"PS_PERSONNEL"."LAST_NAME
Job.Action = HIR
Job.EffDt >= 2/29/08
Here is my SQL:
SELECT DISTINCT
"PS_PERSONNEL"."EMPLID", "PS_PERSONNEL"."FIRST_NAME",
"PS_PERSONNEL"."MIDDLE_NAME", "PS_PERSONNEL"."LAST_NAME",
"PS_PERSONNEL"."STREET1", "PS_PERSONNEL"."STREET2",
"PS_PERSONNEL"."CITY", "PS_PERSONNEL"."STATE",
"PS_PERSONNEL"."ZIP", "PS_PERSONNEL"."SSN",
"PS_PERSONNEL"."SEX", "PS_PERSONNEL"."BIRTHDATE",
"PS_PERSONNEL"."HIRE_DT", "PS_PERSONNEL"."PAYGROUP",
"PS_PERSONNEL"."EMPL_STATUS", "PS_EMPLOYMENT"."HIRE_DT",
"PS_JOB"."ACTION", "PS_JOB"."ACTION_DT", "PS_JOB"."EFFDT",
"PS_JOB"."EMPLID"
FROM
"PS_PERSONNEL", "PS_EMPLOYMENT", "PS_JOB"
WHERE
((("PS_JOB"."ACTION" = 'HIR') AND
("PS_JOB"."EFFDT" >= TO_DATE('2008-02-29', 'YYYY-MM-DD'))))
AND
("PS_PERSONNEL"."EMPLID" = "PS_JOB"."EMPLID" ) AND ("PS_PERSONNEL"."EMPLID" = "PS_EMPLOYMENT"."EMPLID" )
ORDER BY
"PS_PERSONNEL"."LAST_NAME