GPBR_PIN_DV_VW

(SQL View)
Index Back

Brazil Variable and AA View

Brazil Variable and Percentage AA View

SELECT A.COUNTRY , B.PIN_NUM , B.PIN_NM , B.DESCR , A.COUNTRY FROM PS_GP_COUNTRY A , PS_GP_PIN B WHERE B.PIN_NUM < 50000000 AND B.USED_BY = 'C' AND A.COUNTRY = 'BRA' AND B.COUNTRY = A.COUNTRY AND (B.PIN_TYPE = 'VR' OR (B.PIN_TYPE = 'DD' AND EXISTS ( SELECT D.PIN_NUM FROM PS_GP_ERN_DED D WHERE D.PIN_NUM = B.PIN_NUM AND D.CALC_RULE = 'PB' AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_GP_ERN_DED D1 WHERE D1.PIN_NUM = D.PIN_NUM ))))

  • Related Language Record: GP_PIN_AA0_VL
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 COUNTRY Character(3) VARCHAR2(3) NOT NULL Country
    2 PIN_NUM Number(8,0) INTEGER NOT NULL PIN Number
    3 PIN_NM Character(18) VARCHAR2(18) NOT NULL Element Name field
    4 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    5 COUNTRY_CD Character(3) VARCHAR2(3) NOT NULL Country Code