HR_DR_CURJOB_VW

(SQL View)
Index Back

Current Job View

Direct Reports UI. Used to select new authorized individuals.

SELECT A.EMPLID , A.EMPL_RCD , A.EMPL_STATUS , A.HR_STATUS , B.LAST_NAME_SRCH , B.FIRST_NAME_SRCH , B.NAME , B.LAST_NAME , B.FIRST_NAME , B.MIDDLE_NAME , A.SETID_DEPT , A.DEPTID FROM PS_JOB A , PS_PERSON_NAME B WHERE B.EMPLID = A.EMPLID AND A.EFFDT = ( SELECT MAX(A1.EFFDT) FROM PS_JOB A1 WHERE A1.EMPLID = A.EMPLID AND A1.EMPL_RCD = A.EMPL_RCD AND A1.EFFDT <= %CurrentDateIn) AND A.EFFSEQ = ( SELECT MAX(A2.EFFSEQ) FROM PS_JOB A2 WHERE A2.EMPLID = A.EMPLID AND A2.EMPL_RCD = A.EMPL_RCD AND A2.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 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 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
6 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
7 NAME Character(50) VARCHAR2(50) NOT NULL Name
8 LAST_NAME Character(30) VARCHAR2(30) NOT NULL Last Name
9 FIRST_NAME Character(30) VARCHAR2(30) NOT NULL First Name
10 MIDDLE_NAME Character(30) VARCHAR2(30) NOT NULL MIDDLE_NAME
11 SETID Character(5) VARCHAR2(5) NOT NULL SetID
12 DEPTID Character(10) VARCHAR2(10) NOT NULL Department