ABS_SUM_DEPT_VW

(SQL View)
Index Back

Absence Department View

Absence Department View

SELECT B.SETID_DEPT , B.DEPTID , A.EMPLID , A.EMPL_RCD , A.BEGIN_DT , A.ABSENCE_TYPE , A.RETURN_DT 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(D.EFFDT) FROM PS_JOB D WHERE B.EMPLID = D.EMPLID AND B.EMPL_RCD = D.EMPL_RCD AND D.EFFDT <= A.BEGIN_DT) AND B.EFFSEQ = ( SELECT MAX(JOB.EFFSEQ) FROM PS_JOB JOB WHERE JOB.EMPLID = B.EMPLID AND JOB.EMPL_RCD = B.EMPL_RCD AND JOB.EFFDT = B.EFFDT)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
3 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
4 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
5 BEGIN_DT Date(10) DATE Begin Date
6 ABSENCE_TYPE Character(3) VARCHAR2(3) NOT NULL Absence Type
7 RETURN_DT Date(10) DATE Return Date