HR_DR_SRCH_VW_6

(SQL View)
Index Back

Search Direct Reports

Used to search for employees in direct reports version of Person Selector. Access Type 6

SELECT DISTINCT J.EMPLID , J.EMPL_RCD , J.REPORTS_TO , 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.SUPERVIS_EMPL_RCD , JT.SUPERVISOR_FLAG , JT.HR_DR_LEVEL , JT.DRILL_DOWN_FLAG , 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_6 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 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 REPORTS_TO Character(8) VARCHAR2(8) NOT NULL Reports To Position Number
4 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
5 HR_STATUS Character(1) VARCHAR2(1) NOT NULL HR Status
A=Active
I=Inactive
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
7 FULL_PART_TIME Character(1) VARCHAR2(1) NOT NULL Full/Part Time
D=On Demand
F=Full-Time
P=Part-Time
8 SETID_DEPT Character(5) VARCHAR2(5) NOT NULL Department Set ID
9 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
10 SETID_LOCATION Character(5) VARCHAR2(5) NOT NULL Location Set ID
11 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
12 SETID_JOBCODE Character(5) VARCHAR2(5) NOT NULL Job Code Set ID
13 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code
14 POSITION_NBR Character(8) VARCHAR2(8) NOT NULL Position Number
15 POSITION_OVERRIDE Character(1) VARCHAR2(1) NOT NULL Override Position Data
16 SUPERVISOR_ID Character(11) VARCHAR2(11) NOT NULL Supervisor ID
17 SUPERVIS_EMPL_RCD Number(3,0) SMALLINT NOT NULL Supervisor employee record.
18 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.
19 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.
20 DRILL_DOWN_FLAG Character(1) VARCHAR2(1) NOT NULL Y/N field to determine if the row will appear in the dynamic drill down query. These rows appear in the getsupervisor query.
21 NAME Character(50) VARCHAR2(50) NOT NULL Name
22 NAME_DISPLAY Character(50) VARCHAR2(50) NOT NULL Display Name - name formatted for Display based on the Country
23 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
24 NAME_AC Character(50) VARCHAR2(50) NOT NULL Alternate Character Name
25 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
26 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
27 JOBCODE_DESCR Character(30) VARCHAR2(30) NOT NULL Job Code Description
28 EMAIL_ADDR Character(70) VARCHAR2(70) NOT NULL Email Address
29 NAME_DISPLAY_SRCH Character(50) VARCHAR2(50) NOT NULL Uppercase version of Name to improve performance on searches.