NEE_SRCH_ESP_VW(SQL View) |
Index Back |
---|---|
Non Employees Search View ESPNon Employees Search View ESP |
SELECT A.EMPLID , A.EMPL_RCD , B.FIRST_NAME , B.LAST_NAME , A.DEPTID , A.PER_ORG FROM PS_JOB A , PS_NAMES B WHERE B.EMPLID = A.EMPLID AND A.PER_ORG <> 'EMP' AND A.EFFDT = ( SELECT MAX(A2.EFFDT) FROM PS_JOB A2 WHERE A2.EMPLID = A.EMPLID AND A2.EMPL_RCD = A.EMPL_RCD AND A2.EFFSEQ = A.EFFSEQ) AND A.EFFSEQ = ( SELECT MAX(A3.EFFSEQ) FROM PS_JOB A3 WHERE A3.EMPLID = A.EMPLID AND A3.EMPL_RCD = A.EMPL_RCD AND A3.EFFDT = A.EFFDT) AND B.NAME_TYPE = 'PRI' AND B.EFFDT = ( SELECT MAX(B2.EFFDT) FROM PS_NAMES B2 WHERE B2.EMPLID = B.EMPLID AND B2.NAME_TYPE = B.NAME_TYPE AND B2.EFFDT <= A.EFFDT) |
# | 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 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
4 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
5 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
6 | 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 |