GPES_NUM_ABS_SS(SQL View) |
Index Back |
---|---|
Number of SS absencesWith this view we retrieve the number of Social Security absences in the period. Absence takes = 'DIS', 'ACC', 'MAT', 'RSK','CUI' Total and Partial Absences. |
SELECT A.EMPLID , A.CAL_RUN_ID , A.EMPL_RCD , A.GP_PAYGROUP , A.CAL_ID , A.PRD_BGN_DT , COUNT(*) FROM PS_GP_PYE_PRC_STAT A , PS_GP_ABS_EVENT B , PS_GP_ABS_TAKE C WHERE A.EMPLID = B.EMPLID AND A.EMPL_RCD = B.EMPL_RCD AND B.END_DT >= A.PRD_BGN_DT AND B.BGN_DT <= A.PRD_END_DT AND C.PIN_NUM = B.PIN_TAKE_NUM AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PS_GP_ABS_TAKE WHERE PIN_NUM = C.PIN_NUM AND EFFDT <= A.PRD_END_DT) AND C.EFF_STATUS <> 'I' AND C.ABS_TYPE_OPTN IN ('DIS', 'ACC', 'MAT', 'RSK','CUI') AND B.PRC_EVT_ACTN_OPTN = 'N' AND B.VOIDED_IND = 'N' GROUP BY A.EMPLID, A.CAL_RUN_ID, A.EMPL_RCD, A.GP_PAYGROUP, A.CAL_ID, A.PRD_BGN_DT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Calendar Run Id |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Rcd Nbr |
4 | GP_PAYGROUP | Character(10) | VARCHAR2(10) NOT NULL | Global Payroll pay group |
5 | CAL_ID | Character(18) | VARCHAR2(18) NOT NULL | calendar id |
6 | PRD_BGN_DT | Date(10) | DATE | Period Begin Date |
7 | GPES_NUM_ABS_SS | Number(3,0) | SMALLINT NOT NULL | Number of Social Security absences in the period. Absence takes = 'DIS', 'ACC', 'MAT', 'RSK','CUI' Total and Partial Absences. |