RS_WC_ASSN_EXP2

(SQL View)
Index Back

Unassigned Resources


SELECT DISTINCT A.EMPLID , A.RS_APPT_ID , A.RS_END_DATE , %DateDiff(RS_END_DATE,%CurrentDateIn) , B.BUSINESS_UNIT , B.PROJ_ROLE , J.SUPERVISOR_ID , J.DEPTID , J.LOCATION FROM PS_RS_APPOINTMENT A , PS_RS_ASSIGNMENT B , PS_JOB J , PS_RS_WRKR_ELGBL_V F WHERE RS_END_DATE =( SELECT MAX(A1.RS_END_DATE) FROM PS_RS_APPOINTMENT A1 WHERE A.EMPLID=A1.EMPLID AND A.RS_APPT_TYPE = A1.RS_APPT_TYPE AND A.SYSTEM_SOURCE = A1.SYSTEM_SOURCE AND A.RS_APPT_TYPE='ASN' AND A.SYSTEM_SOURCE='RS' AND A.RS_END_DATE <= %CurrentDateIn ) AND A.RS_APPT_ID = B.ASSIGNMENT_ID AND A.EMPLID = J.EMPLID AND A.EMPLID = F.EMPLID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 RS_APPT_ID Character(15) VARCHAR2(15) NOT NULL Appointment Id
3 RS_END_DATE Date(10) DATE End date
4 DURATION Number(5,0) INTEGER NOT NULL Recurrence Duration
5 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
6 PROJ_ROLE Character(15) VARCHAR2(15) NOT NULL Project Role
7 SUPERVISOR_ID Character(11) VARCHAR2(11) NOT NULL Supervisor ID
8 DEPTID Character(10) VARCHAR2(10) NOT NULL Department
9 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code