SELECT DISTINCT SS.COUNTRY , ELIG.ELIG_GRP , TK.ABS_TYPE_OPTN , SS.PIN_TAKE_NUM , ELIG.EFFDT , PIN.LANGUAGE_CD , PIN.PIN_NM , PIN.DESCR FROM PS_GP_PIN_LANG PIN , PS_GP_PIN PIN1 , PS_GP_ABS_TAKE TK , PS_GP_ABS_SS SS , PS_GP_ELEM_GRP_MBR ELEMM , PS_GP_ELEM_GRP ELEM , PS_GP_ELIG_GRP_MBR ELIGM , PS_GP_ELIG_GRP ELIG , PS_GP_ABS_TYPE TP WHERE PIN.PIN_NUM < 50000000 AND PIN.PIN_NUM = TK.PIN_NUM AND PIN.PIN_NUM = SS.PIN_TAKE_NUM AND TK.PIN_NUM = PIN1.PIN_NUM AND %EffdtCheck(GP_ABS_SS, SS,%CurrentDateIn) AND SS.EFF_STATUS = 'A' AND TP.REQUEST_IND = 'Y' AND PIN.PIN_NUM = ELEMM.PIN_ELEM_NUM AND ELEMM.PIN_NUM = ELEM.PIN_NUM AND ELEMM.EFFDT = ELEM.EFFDT AND %EffdtCheck(GP_ELEM_GRP, ELEM, %CurrentDateIn) AND ELEM.EFF_STATUS = 'A' AND ELEM.PIN_NUM = ELIGM.PIN_ELEM_GRP_NUM AND ELIGM.ELIG_GRP = ELIG.ELIG_GRP AND ELIGM.EFFDT = ELIG.EFFDT AND %EffdtCheck(GP_ABS_TAKE, TK, %CurrentDateIn) AND TK.EFF_STATUS = 'A' AND TP.COUNTRY = PIN1.COUNTRY AND TP.ABS_TYPE_OPTN = TK.ABS_TYPE_OPTN AND %EffdtCheck(GP_ABS_TYPE, TP, %CurrentDateIn)
|