HR_VT_CREER_HST

(SQL View)
Index Back

SP360 Career History

Contains the first effective date for a distinct job

SELECT A.EMPLID , A.EMPL_RCD , A.EFFDT , A.setid_jobcode , A.JOBCODE FROM PS_CURRENT_JOB_ALL A WHERE A.JOBCODE <> ( SELECT B.JOBCODE FROM PS_CURRENT_JOB_ALL B WHERE B.EMPLID = A.EMPLID AND B.EMPL_RCD = A.EMPL_RCD AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_CURRENT_JOB_ALL B1 WHERE B1.EMPLID = B.EMPLID AND B1.EMPL_RCD = B.EMPL_RCD AND B1.EFFDT < A.EFFDT)) OR A.EFFDT = ( SELECT MIN(EFFDT) FROM PS_CURRENT_JOB_ALL C1 WHERE C1.EMPLID = A.EMPLID AND c1.empl_rcd = A.empl_rcd) OR A.ACTION IN ('REH', 'HIR')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
3 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 SETID Character(5) VARCHAR2(5) NOT NULL SetID
5 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code