W2US_EMPLID_VW(SQL View) |
Index Back |
---|---|
EMPLIDs for W-2 companiesEMPLIDs for W-2 companies (US and Territories). Excludes employees in companies with Tax Reporting Type = W-2 PR, 1099-R and 'None' |
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 = '2' 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 |