SELECT DISTINCT SS.COUNTRY , E.ELIG_GRP , SS.PIN_TAKE_NUM , LANG.LANGUAGE_CD , E.EFFDT , LANG.PIN_NM , LANG.DESCR FROM PS_GP_PIN PIN , PS_GP_PIN_LANG LANG , PS_GP_ABS_TAKE TK , PS_GP_ABS_SS SS , PS_GP_ELEM_GRP_MBR EGM , PS_GP_ELEM_GRP EG , PS_GP_ELIG_GRP_MBR EM , PS_GP_ELIG_GRP E WHERE PIN.PIN_NUM < 50000000 AND PIN.PIN_NUM = SS.PIN_TAKE_NUM AND PIN.PIN_NUM = LANG.PIN_NUM AND SS.REQUEST_IND = 'Y' AND PIN.PIN_NUM = EGM.PIN_ELEM_NUM AND EGM.PIN_NUM = EG.PIN_NUM AND EGM.EFFDT = EG.EFFDT AND %EffdtCheck(GP_ELEM_GRP, EG, %CurrentDateIn) AND EG.EFF_STATUS = 'A' AND EG.PIN_NUM = EM.PIN_ELEM_GRP_NUM AND EM.ELIG_GRP = E.ELIG_GRP AND EM.EFFDT = E.EFFDT AND PIN.PIN_NUM = TK.PIN_NUM AND %EffdtCheck(GP_ABS_TAKE, TK, %CurrentDateIn) AND TK.EFF_STATUS = 'A' AND SS.EFF_STATUS = 'A' AND %EffdtCheck(GP_ABS_SS, SS, %CurrentDateIn)
|