HR_LBRID_LY3_VW

(SQL View)
Index Back

Labor Facility ID's View

This view is for Fetching Labor Facility ID's.

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

# 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
4 DESCR Character(30) VARCHAR2(30) NOT NULL Description