TL_WFA_SUP_VW(SQL View) |
Index Back |
---|---|
Supervisor Name Query |
SELECT a.emplid ,A.EMPL_RCD ,a.supervisor_id , b.name_display FROM ps_tl_job_empl_dat A , PS_NAMES B WHERE A.supervisor_id = B.emplid AND B.NAME_TYPE='PRI' AND B.EFFDT=( SELECT MAX(B1.EFFDT) FROM PS_NAMES B1 WHERE B.EMPLID=B1.EMPLID AND B.NAME_TYPE=B1.NAME_TYPE AND B1.EFFDT <= %CurrentDateIn) UNION SELECT emplid ,EMPL_RCD , ' ' ,' ' FROM PS_TL_JOB_EMPL_DAT WHERE SUPERVISOR_ID=' ' |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
3 | SUPERVISOR_ID | Character(11) | VARCHAR2(11) NOT NULL | Supervisor ID |
4 | SUPERVISOR_NAME | Character(50) | VARCHAR2(50) NOT NULL | Supervisor Name |