SELECT CTRY.COUNTRY , PIN.PIN_NUM , LANG.LANGUAGE_CD , %DateIn('1900-01-01') , LANG.PIN_NM , LANG.DESCR FROM PS_GP_COUNTRY CTRY , PS_GP_PIN PIN , PS_GP_SYSTEM_PIN SYS , PS_GP_PIN_LANG LANG WHERE PIN.PIN_NUM < 50000000 AND (PIN.USED_BY = 'A' OR PIN.COUNTRY = CTRY.COUNTRY) AND PIN.PIN_NUM = SYS.PIN_NUM AND PIN.PIN_NUM = LANG.PIN_NUM AND SYS.CHART_FLD_IND = 'Y' UNION SELECT CTRY.COUNTRY , PIN.PIN_NUM , LANG.LANGUAGE_CD , VARI.EFFDT , LANG.PIN_NM , LANG.DESCR FROM PS_GP_COUNTRY CTRY , PS_GP_PIN PIN , PS_GP_VARIABLE VARI , PS_GP_PIN_LANG LANG WHERE PIN.PIN_NUM < 50000000 AND (PIN.USED_BY = 'A' OR PIN.COUNTRY = CTRY.COUNTRY) AND PIN.PIN_NUM = VARI.PIN_NUM AND PIN.PIN_NUM = LANG.PIN_NUM AND VARI.CHART_FLD_IND = 'Y' AND VARI.EFF_STATUS = 'A'
|