PY_ACT_NOCHK_VW

(SQL View)
Index Back

Active EE with no paycheck

This view shows the active employees with no paycheck in WorkCenter.

SELECT A.COMPANY , A.PAYGROUP , A.PAY_END_DT , F.EMPLID , F.EMPL_RCD , N.NAME , F.EMPL_STATUS , F.EFFDT , F.DEPTID , F.BUSINESS_UNIT , C.COUNTRY , C.INDUSTRY_SECTOR FROM PS_PAY_CALENDAR A , PS_PAYGROUP_TBL C , PS_PY_WC_PAYGRP D , PS_JOB F , PS_PY_WC_NAMES_VW N WHERE D.PY_INCL_PAYGRP = 'Y' AND A.COMPANY = D.COMPANY AND A.PAYGROUP = D.PAYGROUP AND A.PAY_SHEETS_RUN = 'Y' AND A.PAY_CONFIRM_RUN = 'N' AND C.COMPANY = D.COMPANY AND C.PAYGROUP = D.PAYGROUP AND F.COMPANY = D.COMPANY AND F.PAYGROUP = D.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) AND F.EFFDT = ( SELECT MAX(F1.EFFDT) FROM PS_JOB F1 WHERE F1.EMPLID = F.EMPLID AND F1.EMPL_RCD = F.EMPL_RCD AND F1.EFFDT <= A.PAY_END_DT ) AND F.EFFSEQ = ( SELECT MAX(F2.EFFSEQ) FROM PS_JOB F2 WHERE F2.EMPLID = F.EMPLID AND F2.EMPL_RCD = F.EMPL_RCD AND F2.EFFDT = F.EFFDT) AND F.EMPL_STATUS IN ( 'A' , 'P', 'Q', 'U') AND F.PAY_SYSTEM_FLG = 'NA' AND N.EMPLID = F.EMPLID AND N.NAME_TYPE = 'PRI' AND NOT EXISTS ( SELECT 'X' FROM PS_PAY_LINE B WHERE B.COMPANY = A.COMPANY AND B.PAYGROUP = A.PAYGROUP AND B.PAY_END_DT = A.PAY_END_DT AND B.EMPLID = F.EMPLID AND B.EMPL_RCD = F.EMPL_RCD)

# 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 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
5 EMPL_RCD Number(3,0) SMALLINT NOT NULL Empl Record
6 NAME Character(50) VARCHAR2(50) NOT NULL Name
7 EMPL_STATUS Character(1) VARCHAR2(1) NOT NULL Payroll Status
A=Active
D=Deceased
L=Leave of Absence
P=Leave With Pay
Q=Retired With Pay
R=Retired
S=Suspended
T=Terminated
U=Terminated With Pay
V=Terminated Pension Pay Out
W=Short Work Break
X=Retired-Pension Administration
8 EFFDT Date(10) DATE Effective Date
9 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
10 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
11 COUNTRY_CD Character(3) VARCHAR2(3) NOT NULL Country Code
12 INDUSTRY_SECTOR Character(4) VARCHAR2(4) NOT NULL Industry Sector
CORE=Core
PBSC=Public Sector
USFG=US Federal Government