GPBR_ES_CMP2_VW

(SQL View)
Index Back

eSocail Company HQ View

eSocail Company HQ View

SELECT a.company , a.descr FROM ps_estab_tbl a , PS_ESTAB_TBL_BRA b WHERE a.country = 'BRA' AND a.HQUNIT = 'Y' AND a.effdt = ( SELECT MAX(effdt) FROM ps_estab_tbl WHERE estabid = a.estabid AND country = a.country AND effdt <= %CurrentDateIn) AND A.ESTABID=( SELECT MIN(H.ESTABID) FROM PS_ESTAB_TBL H WHERE H.COMPANY=A.COMPANY AND H.EFFDT<=A.EFFDT AND H.HQUNIT=A.HQUNIT) AND b.estabid = a.estabid AND b.effdt = a.effdt

  • Related Language Record: GPBR_ES_CMP_LNG
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 COMPANY Character(3) VARCHAR2(3) NOT NULL Company
    2 DESCR Character(30) VARCHAR2(30) NOT NULL Description