Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I pull future New Hires?

Status
Not open for further replies.

Gymnast14

Technical User
Dec 21, 2006
38
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top