HR_LBRFCLY3_VW

(SQL View)
Index Back

Labor Agreement Facility View

Labor Agreement Facility View

SELECT A.SETID , A.LABOR_AGREEMENT , A.LABOR_FACILITY_ID , A.EFFDT , B.DESCR FROM PS_HR_LBR_FACILITY A , PS_HR_LBR_FAC_TBL B WHERE A.LABOR_FACILITY_ID = B.LABOR_FACILITY_ID AND A.EFFDT = ( SELECT MAX(C.EFFDT) FROM PS_HR_LBR_FACILITY C WHERE C.SETID = A.SETID AND C.LABOR_AGREEMENT = A.LABOR_AGREEMENT AND C.LABOR_FACILITY_ID = A.LABOR_FACILITY_ID AND C.EFFDT <= %CurrentDateIn) AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_HR_LBR_FAC_TBL D WHERE D.LABOR_FACILITY_ID = B.LABOR_FACILITY_ID AND D.EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A'

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 LABOR_AGREEMENT Character(6) VARCHAR2(6) NOT NULL Labor Agreement
3 LABOR_FACILITY_ID Character(10) VARCHAR2(10) NOT NULL Labor Facility ID

Prompt Table: HR_LBR_FAC_TBL

4 EFFDT Date(10) DATE NOT NULL Effective Date

Default Value: %date

5 DESCR Character(30) VARCHAR2(30) NOT NULL Description