GPAR_EMPFORM_VW(SQL View) |
Index Back |
---|---|
View to select employeesView to select employees |
SELECT A.COMPANY , A.EMPLID , B.NAME FROM PS_JOB A , PS_PERSONAL_DATA B WHERE B.EMPLID = A.EMPLID AND A.EFFSEQ = ( SELECT MAX(A2.EFFSEQ) FROM PS_JOB A2 WHERE A2.EMPLID = A.EMPLID AND A2.EMPL_RCD = A.EMPL_RCD AND A2.EFFDT = A.EFFDT) AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_JOB A1 WHERE A1.EMPLID = A.EMPLID AND A1.EMPL_RCD = A.EMPL_RCD AND A1.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
2 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
3 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |