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.PER_ORG , 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 Record |
3 | PER_ORG | Character(3) | VARCHAR2(3) NOT NULL |
Defines the Organizational Relationship(s) that a Person has to the Organization. These are Employee, Contingent Worker, and Persons of Interest.
CWR=Contingent Worker EMP=Employee POI=Person of Interest |
4 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
5 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
6 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL | Department Set ID |
7 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
8 | DEPTNAME | Character(30) | VARCHAR2(30) NOT NULL | Department Name |
9 | POSITION_NBR | Character(8) | VARCHAR2(8) NOT NULL |
Position Number
Prompt Table: POSITION_DATA |
10 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
11 | REPORTS_TO | Character(8) | VARCHAR2(8) NOT NULL | Reports To Position Number |
12 | SUPERVISOR_ID | Character(11) | VARCHAR2(11) NOT NULL | Supervisor ID |