HR_DR_USERMJ_VW(SQL View) |
Index Back |
---|---|
User Multiple JobsThis view returns all currently active jobs held for an employee. This is used in the DirectReports UI framework. |
SELECT A.EMPLID , A.EMPL_RCD , A.SETID_JOBCODE , A.JOBCODE , A.SETID_DEPT , A.DEPTID , B.DESCR ,A.POSITION_NBR ,A.COMPANY ,A.REPORTS_TO ,A.SUPERVISOR_ID FROM PS_JOB A , PS_DEPT_TBL_EFF_VW B WHERE A.SETID_DEPT = B.SETID AND A.DEPTID = B.DEPTID 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) 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.HR_STATUS = 'A' |
# | 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 Rcd Nbr |
3 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
4 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
5 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL | Department SetID |
6 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
7 | DEPTNAME | Character(30) | VARCHAR2(30) NOT NULL | Department |
8 | POSITION_NBR | Character(8) | VARCHAR2(8) NOT NULL |
Position Number
Prompt Table: POSITION_DATA |
9 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
10 | REPORTS_TO | Character(8) | VARCHAR2(8) NOT NULL | Reports To Position Number |
11 | SUPERVISOR_ID | Character(11) | VARCHAR2(11) NOT NULL | Supervisor ID |