GPDE_EE_DEPT_VW(SQL View) |
Index Back |
---|---|
Current Depts for an EEThis view selects all the current departments for an emplid. |
SELECT DISTINCT A.EMPLID , A.DEPTID , C.DESCR FROM PS_JOB A , PS_DEPT_TBL C WHERE A.EFFDT = ( SELECT MAX(B.EFFDT) FROM PS_JOB B WHERE B.EMPLID = A.EMPLID AND B.EMPL_RCD = A.EMPL_RCD AND B.EFFDT <= %CurrentDateIn ) AND C.SETID = A.SETID_DEPT AND C.DEPTID = A.DEPTID AND C.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_DEPT_TBL D WHERE D.SETID = C.SETID AND D.DEPTID = C.DEPTID AND D.EFFDT <= %CurrentDateIn ) AND C.EFF_STATUS = 'A' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |