HR_DR_SRCH_VW_3(SQL View) |
Index Back |
---|---|
Search Direct ReportsUsed to search for employees in direct reports version of Person Selector. Access Type 3 |
SELECT DISTINCT J.EMPLID , J.EMPL_RCD , J.EMPL_STATUS , J.HR_STATUS , J.PER_ORG , J.FULL_PART_TIME , J.SETID_DEPT , J.DEPTID , J.SETID_LOCATION , J.LOCATION , J.SETID_JOBCODE , J.JOBCODE , J.POSITION_NBR , J.POSITION_OVERRIDE , JT.SUPERVISOR_ID , JT.SUPERVISOR_FLAG , JT.HR_DR_LEVEL , N.NAME , N.NAME_DISPLAY , N.LAST_NAME_SRCH , N.NAME_AC , N.LAST_NAME , N.FIRST_NAME , JC.DESCR , E.EMAIL_ADDR , N.NAME_DISPLAY_SRCH FROM PS_JOB J , PS_HR_DIRECT_REP_3 JT LEFT OUTER JOIN PS_PERSON_EMAIL E ON JT.EMPLID = E.EMPLID , PS_PERSON_NAME N , PS_JOBCODE_TBL JC WHERE JT.EMPLID = N.EMPLID AND J.HR_STATUS = 'A' AND J.EFFSEQ = ( SELECT MAX(JES.EFFSEQ) FROM PS_JOB JES WHERE JES.EMPLID = J.EMPLID AND JES.EMPL_RCD = J.EMPL_RCD AND JES.EFFDT = J.EFFDT) AND JT.EMPLID = J.EMPLID AND JT.EMPL_RCD = J.EMPL_RCD AND JT.JOB_EFFDT = J.EFFDT AND JT.DRILL_DOWN_FLAG = 'Y' AND J.SETID_JOBCODE = JC.SETID AND J.JOBCODE = JC.JOBCODE AND %EffdtCheck(JOBCODE_TBL JCE, JC, %CurrentDateIn) |
# | 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 | 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 |
4 | HR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
HR Status
A=Active I=Inactive |
5 | 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 |
6 | FULL_PART_TIME | Character(1) | VARCHAR2(1) NOT NULL |
Full/Part Time
D=On Demand F=Full-Time P=Part-Time |
7 | SETID_DEPT | Character(5) | VARCHAR2(5) NOT NULL | Department Set ID |
8 | DEPTID | Character(10) | VARCHAR2(10) NOT NULL | Department |
9 | SETID_LOCATION | Character(5) | VARCHAR2(5) NOT NULL | Location Set ID |
10 | LOCATION | Character(10) | VARCHAR2(10) NOT NULL | Location Code |
11 | SETID_JOBCODE | Character(5) | VARCHAR2(5) NOT NULL | Job Code Set ID |
12 | JOBCODE | Character(6) | VARCHAR2(6) NOT NULL | Job Code |
13 | POSITION_NBR | Character(8) | VARCHAR2(8) NOT NULL | Position Number |
14 | POSITION_OVERRIDE | Character(1) | VARCHAR2(1) NOT NULL | Override Position Data |
15 | SUPERVISOR_ID | Character(11) | VARCHAR2(11) NOT NULL | Supervisor ID |
16 | HR_DRPT_INDIRECT | Character(1) | VARCHAR2(1) NOT NULL | This Y/N flag is used in the Direct Reports module to indicate whether a given employee/job has indirect reports. |
17 | HR_DR_LEVEL | Number(3,0) | SMALLINT NOT NULL | Number denoting how many levels down the organizational chart the employee is from the supervisor. Direct reports are always level 1. |
18 | NAME | Character(50) | VARCHAR2(50) NOT NULL | Name |
19 | NAME_DISPLAY | Character(50) | VARCHAR2(50) NOT NULL | Display Name - name formatted for Display based on the Country |
20 | LAST_NAME_SRCH | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
21 | NAME_AC | Character(50) | VARCHAR2(50) NOT NULL | Alternate Character Name |
22 | LAST_NAME | Character(30) | VARCHAR2(30) NOT NULL | Last Name |
23 | FIRST_NAME | Character(30) | VARCHAR2(30) NOT NULL | First Name |
24 | JOBCODE_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Job Code Description |
25 | EMAIL_ADDR | Character(70) | VARCHAR2(70) NOT NULL | Email Address |
26 | NAME_DISPLAY_SRCH | Character(50) | VARCHAR2(50) NOT NULL | Uppercase version of Name to improve performance on searches. |