HR_PSS_JOB2_VW(SQL View) |
Index Back |
---|---|
Person Search - SimplePerson Search - Simple: View joining Person_Name, and Job. Used to run the search |
SELECT A.EMPLID , B.PER_ORG , B.POI_TYPE , B.HR_STATUS , B.BUSINESS_UNIT , A.NAME_AC , A.NAME_DISPLAY , A.NAME , A.NAME_DISPLAY_SRCH , E.EMAIL_ADDR , JC.DESCR , D.DESCR , L.DESCR FROM PS_PERSON_NAME A , PS_JOB B LEFT OUTER JOIN PS_PERSON_EMAIL E ON B.EMPLID = E.EMPLID , PS_JOBCODE_TBL JC , PS_DEPT_TBL D , PS_LOCATION_TBL L WHERE A.EMPLID = B.EMPLID AND B.EFFDT = ( SELECT MAX(J1.EFFDT) FROM PS_JOB J1 WHERE J1.EMPLID = B.EMPLID AND J1.EMPL_RCD = B.EMPL_RCD AND J1.EFFDT <= %CurrentDateIn) AND B.EFFSEQ = ( SELECT MAX(J2.EFFSEQ) FROM PS_JOB J2 WHERE J2.EMPLID = B.EMPLID AND J2.EMPL_RCD = B.EMPL_RCD AND J2.EFFDT = B.EFFDT) AND JC.EFFDT = ( SELECT MAX(JC1.EFFDT) FROM PS_JOBCODE_TBL JC1 WHERE JC1.SETID = JC.SETID AND JC1.JOBCODE = JC.JOBCODE AND JC1.EFFDT <= %CurrentDateIn) AND B.SETID_JOBCODE = JC.SETID AND B.JOBCODE = JC.JOBCODE AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_DEPT_TBL D1 WHERE D1.SETID = D.SETID AND D1.DEPTID = D.DEPTID AND D1.EFFDT <= %CurrentDateIn) AND B.SETID_DEPT = D.SETID AND B.DEPTID = D.DEPTID AND L.EFFDT = ( SELECT MAX(L1.EFFDT) FROM PS_LOCATION_TBL L1 WHERE L1.SETID = L.SETID AND L1.LOCATION = L.LOCATION AND L1.EFFDT <= %CurrentDateIn) AND B.SETID_LOCATION = L.SETID AND B.LOCATION = L.LOCATION |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | 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 |
3 | POI_TYPE | Character(5) | VARCHAR2(5) NOT NULL | Defines the Transactional usage of POIs in HRMS. |
4 | HR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
HR Status
A=Active I=Inactive |
5 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
6 | NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Alternate Character Name |
7 | NAME_DISPLAY | Character(50) | VARCHAR2(50) NOT NULL | Display Name - name formatted for Display based on the Country |
8 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
9 | NAME_DISPLAY_SRCH | Character(50) | VARCHAR2(50) NOT NULL | Uppercase version of Name to improve performance on searches. |
10 | EMAIL_ADDR | Character(70) | VARCHAR2(70) NOT NULL | Email Address |
11 | JOBCODE_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Job Code Description |
12 | DEPT_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Department Description |
13 | LOCATION_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Location Description |