PY_THSHLD_HR_VW(SQL View) |
Index Back |
---|---|
Payroll Total Hours ThresholdThis view shows the total hours on paycheck which exceeds threshold for active employees in WorkCenter. |
SELECT A.COMPANY , A.PAYGROUP , A.PAY_END_DT , A.OFF_CYCLE , A.PAGE_NUM , A.LINE_NUM , A.SEPCHK , A.EMPLID , A.EMPL_RCD , A.NAME , A.DEPTID , A.BUSINESS_UNIT , A.TOTAL_ERN_HRS , C.COUNTRY , C.INDUSTRY_SECTOR FROM PS_PY_T_EHRS_WC_VW A , PS_PY_WC_PAYGRP B , PS_PAYGROUP_TBL C , PS_JOB D WHERE A.COMPANY = B.COMPANY AND A.PAYGROUP = B.PAYGROUP AND B.PY_INCL_PAYGRP = 'Y' AND A.TOTAL_ERN_HRS > B.PY_THRESHOLD_HR AND A.EMPLID = D.EMPLID AND A.EMPL_RCD = D.EMPL_RCD AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_JOB D1 WHERE D1.EMPLID = D.EMPLID AND D1.EMPL_RCD = D.EMPL_RCD AND D1.EFFDT <= A.PAY_END_DT) AND D.EFFSEQ = ( SELECT MAX(D2.EFFSEQ) FROM PS_JOB D2 WHERE D2.EMPLID = D.EMPLID AND D2.EMPL_RCD = D.EMPL_RCD AND D2.EFFDT = D.EFFDT) AND D.EMPL_STATUS IN ( 'A' , 'P', 'Q', 'U') AND C.COMPANY = A.COMPANY AND C.PAYGROUP = A.PAYGROUP AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_PAYGROUP_TBL C1 WHERE C1.COMPANY = C.COMPANY AND C1.PAYGROUP = C.PAYGROUP AND C1.EFFDT <= A.PAY_END_DT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
2 | PAYGROUP | Character(3) | VARCHAR2(3) NOT NULL | Pay Group |
3 | PAY_END_DT | Date(10) | DATE | Pay Period End Date |
4 | OFF_CYCLE | Character(1) | VARCHAR2(1) NOT NULL | Off Cycle ? |
5 | PAGE_NUM | Number(5,0) | INTEGER NOT NULL | Page Nbr |
6 | LINE_NUM | Number(3,0) | SMALLINT NOT NULL | Line Nbr |
7 | SEPCHK | Number(2,0) | SMALLINT NOT NULL | Separate check number. |
8 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
9 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
10 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
11 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
12 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
13 | TOTAL_ERN_HRS | Signed Number(12,2) | DECIMAL(10,2) NOT NULL | Sum of earn hours, reg hours and OT hours on pay earnings. |
14 | COUNTRY_CD | Character(3) | VARCHAR2(3) NOT NULL | Country Code |
15 | INDUSTRY_SECTOR | Character(4) | VARCHAR2(4) NOT NULL |
Industry Sector
CORE=Core PBSC=Public Sector USFG=US Federal Government |