RS_WRK_A_JOB_VW

(SQL View)
Index Back

Worker Future Job View

This view is used to display any future job changes recorded in Resource Management. SUJ--Modified SQL to ensure only Resource Mgmt resources are shown by view.

SELECT E.EMPLID , F.EMPL_RCD , F.BUSINESS_UNIT , F.DEPTID , F.LOCATION , F.EMPL_STATUS , F.JOBCODE FROM %Table(RS_WORKER_TBL) E , %Table(JOB) F ,%Table(RS_WRKR_EFFDT) G WHERE E.EMPLID = F.EMPLID AND E.EMPLID = G.EMPLID AND G.SYSTEM_SOURCE = 'RS' AND G.WRKR_INELIGIBLE = 'N' AND F.EFFDT = ( SELECT MAX(EFFDT) FROM %Table(JOB) J WHERE F.EMPLID = J.EMPLID AND F.EMPL_RCD = J.EMPL_RCD AND F.EMPL_STATUS = 'A' AND J.EFFDT <= %CurrentDateIn) AND F.EFFSEQ = ( SELECT MAX(EFFSEQ) FROM %Table(JOB) K WHERE F.EMPLID = K.EMPLID AND F.EMPL_RCD = K.EMPL_RCD AND F.EMPL_STATUS = 'A' AND F.EFFDT = K.EFFDT) AND F.EMPL_STATUS = 'A'

# 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 Rcd Nbr
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
5 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
6 EMPL_STATUS Character(1) VARCHAR2(1) NOT NULL Employee Status
A=Active
D=Deceased
I=Inactive
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
7 JOBCODE Character(6) VARCHAR2(6) NOT NULL Job Code