ABSPARDE_VW2_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 B.DEPTID , A.EMPLID , A.EMPL_RCD , A.DEPENDENT_BENEF , A.ABSENCE_CODE , A.BEGIN_DT , A.RETURN_DT , A.DURATION_DAYS , A.ABS_DUR_WEEKS_UK , A.ABS_POSTPND_LVE_UK 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
4 DEPENDENT_BENEF Character(2) VARCHAR2(2) NOT NULL Dependent Benefit
01=default
5 ABSENCE_CODE Character(3) VARCHAR2(3) NOT NULL Absence Code
6 BEGIN_DT Date(10) DATE Begin Date
7 RETURN_DT Date(10) DATE Return Date
8 DURATION_DAYS Number(7,3) DECIMAL(6,3) NOT NULL Duration (Days)
9 ABS_DUR_WEEKS_UK Number(3,0) SMALLINT NOT NULL Keeps absence duration in weeks.
10 ABS_POSTPND_LVE_UK Character(1) VARCHAR2(1) NOT NULL Indicates if UK Parental Leave absence has been postponed.