GPDE_AL_CNCL_VW

(SQL View)
Index Back

Latest Hire View

Latest Hire View

SELECT A.EMPLID ,A.EMPL_RCD ,A.EFFDT ,B.WC_COUNCIL_ID FROM PS_JOB A , PS_COMP_LOC_TBL B WHERE A.EMPL_STATUS = 'A' AND A.COMPANY = B.COMPANY AND A.SETID_LOCATION = B.SETID AND A.LOCATION = B.LOCATION AND B.EFFDT = ( SELECT MAX(B2.EFFDT) FROM PS_COMP_LOC_TBL B2 WHERE B.COMPANY = B2.COMPANY AND B.SETID = B2.SETID AND B.LOCATION = B2.LOCATION AND B2.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 EFFDT Date(10) DATE Effective Date

Default Value: %date

4 WC_COUNCIL_ID Character(9) VARCHAR2(9) NOT NULL Works Council ID