ESTAB_LOC_US_VW

(SQL View)
Index Back

View of ESTAB_LOC_US

View of ESTAB_LOC_US.

SELECT B.SETID , B.LOCATION , B.EFFDT , B.ESTABID , C.EFF_STATUS , C.DESCR FROM PS_ESTAB_LOC_US B , PS_ESTAB_TBL C WHERE C.ESTABID = B.ESTABID AND C.EFFDT = ( SELECT MAX(C1.EFFDT) FROM PS_ESTAB_TBL C1 WHERE C1.ESTABID = C.ESTABID AND C1.EFFDT <= B.EFFDT) AND C.EFF_STATUS = 'A'

  • Related Language Record: ESTAB_LOC_US_LG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 SETID_LOCATION Character(5) VARCHAR2(5) NOT NULL Location Set ID
    2 LOCATION Character(10) VARCHAR2(10) NOT NULL Location Code
    3 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    4 ESTABID Character(12) VARCHAR2(12) NOT NULL Establishment ID
    5 EFF_STATUS Character(1) VARCHAR2(1) NOT NULL Effective Status
    A=Active
    I=Inactive
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description