HR_TR_MTRX_SVW(SQL View) |
Index Back |
---|
SELECT DISTINCT J.EMPLID , J.EMPL_RCD , J.BUSINESS_UNIT , J.SETID_DEPT , J.DEPTID , J.SETID_JOBCODE , J.JOBCODE , JC.DESCR , J.POSITION_NBR , J.POSITION_OVERRIDE , J.SETID_LOCATION , J.LOCATION , J.COMPANY , J.HR_STATUS , J.EMPL_STATUS , J.PER_ORG , J.FULL_PART_TIME , N.NAME_DISPLAY , N.NAME_DISPLAY_SRCH , E.EMAIL_ADDR , TN.TREE_NAME , TN.TREE_NODE , TN.PARENT_NODE_NAME , TN.TREE_NODE_NUM , TN.TREE_NODE_NUM_END FROM PS_JOB J LEFT OUTER JOIN PS_PERSON_EMAIL E ON J.EMPLID = E.EMPLID , PS_PERSON_NAME N , PS_JOBCODE_TBL JC , PSTREENODE TN , PS_HRCD_JOB_TREE JT WHERE J.HR_STATUS = 'A' AND J.EMPLID = N.EMPLID AND J.EFFDT = ( SELECT MAX(JE.EFFDT) FROM PS_JOB JE WHERE JE.EMPLID = J.EMPLID AND JE.EMPL_RCD = J.EMPL_RCD AND JE.EFFDT <= %CurrentDateIn) AND J.EFFSEQ = ( SELECT MAX(A.EFFSEQ) FROM PS_JOB A WHERE A.EMPLID = J.EMPLID AND A.EMPL_RCD = J.EMPL_RCD AND A.EFFDT = J.EFFDT) AND JC.SETID = J.SETID_JOBCODE AND JC.JOBCODE = J.JOBCODE AND JC.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOBCODE_TBL JC1 WHERE JC1.SETID = JC.SETID AND JC1.JOBCODE = JC.JOBCODE AND JC1.EFFDT <= %CurrentDateIn) AND JT.EMPLID = J.EMPLID AND JT.EMPL_RCD = J.EMPL_RCD AND JT.TREE_NODE = TN.TREE_NODE AND TN.EFFDT = ( SELECT MAX(EFFDT) FROM PSTREEDEFN TD WHERE TD.SETID = TN.SETID AND TD.SETCNTRLVALUE = TN.SETCNTRLVALUE AND TD.TREE_NAME = TN.TREE_NAME AND TN.EFFDT <= %CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PERSON |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
3 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
4 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL | Department Set ID |
5 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
6 | SETID_JOBCODE | Character(5) | VARCHAR2(5) NOT NULL | Job Code Set ID |
7 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
8 | JOBCODE_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Job Code Description |
9 | POSITION_NBR | Character(8) | VARCHAR2(8) NOT NULL | Position Number |
10 | POSITION_OVERRIDE | Character(1) | VARCHAR2(1) NOT NULL | Override Position Data |
11 | SETID_LOCATION | Character(5) | VARCHAR2(5) NOT NULL | Location Set ID |
12 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
13 | COMPANY | Character(3) | VARCHAR2(3) NOT NULL | Company |
14 | HR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
HR Status
A=Active I=Inactive |
15 | EMPL_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Payroll Status
A=Active D=Deceased L=Leave of Absence P=Leave With Pay Q=Retired With Pay R=Retired S=Suspended T=Terminated U=Terminated With Pay V=Terminated Pension Pay Out W=Short Work Break X=Retired-Pension Administration |
16 | 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 |
17 | FULL_PART_TIME | Character(1) | VARCHAR2(1) NOT NULL |
Full/Part Time
D=On Demand F=Full-Time P=Part-Time |
18 | NAME_DISPLAY | Character(50) | VARCHAR2(50) NOT NULL | Display Name - name formatted for Display based on the Country |
19 | NAME_DISPLAY_SRCH | Character(50) | VARCHAR2(50) NOT NULL | Uppercase version of Name to improve performance on searches. |
20 | EMAIL_ADDR | Character(70) | VARCHAR2(70) NOT NULL | Email Address |
21 | TREE_NAME | Character(18) | VARCHAR2(18) NOT NULL | Tree Name |
22 | TREE_NODE | Character(20) | VARCHAR2(20) NOT NULL | Node name |
23 | PARENT_NODE_NAME | Character(20) | VARCHAR2(20) NOT NULL | Name of parent node |
24 | TREE_NODE_NUM | Number(10,0) | DECIMAL(10) NOT NULL | Internal beginning node range number |
25 | TREE_NODE_NUM_END | Number(10,0) | DECIMAL(10) NOT NULL | Internal ending node range number |