ABSPARDE_VW1_UK

(SQL View)
Index Back

UK Parental Leave by Dept

Used for the inquiry by department of Parental Leave absence in the UK functionality.

SELECT DISTINCT B.DEPTID , A.EMPLID , A.EMPL_RCD FROM PS_ABSENCE_HIST A ,PS_JOB B WHERE A.EMPLID = B.EMPLID AND A.EMPL_RCD = B.EMPL_RCD AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_JOB B1 WHERE B.EMPLID = B1.EMPLID AND B.EMPL_RCD = B1.EMPL_RCD AND B1.EFFDT <= A.BEGIN_DT) AND ABSENCE_TYPE = 'PAR'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
3 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Rcd Nbr