W2PR_EMPLID_VW

(SQL View)
Index Back

EMPLIDs for W-2PR companies

EMPLIDs for W-2PR companies

SELECT DISTINCT A.EMPLID , A.EFFDT , A.COMPANY FROM PS_JOB A , PS_COMPANY_TBL B WHERE A.COMPANY = B.COMPANY AND B.TAX_REPORT_TYPE = 'P' AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_JOB C WHERE A.EMPLID = C.EMPLID AND A.EMPL_RCD = C.EMPL_RCD AND A.COMPANY = C.COMPANY AND C.EFFDT <= %CurrentDateIn) AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_COMPANY_TBL D WHERE D.COMPANY = B.COMPANY)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 EFFDT Date(10) DATE Effective Date

Default Value: %date

3 COMPANY Character(3) VARCHAR2(3) NOT NULL Company