SELECT E.VC_PLAN_ID , C.VC_PAYOUT_PRD_ID , E2.LANGUAGE_CD , B.EFFDT , E2.DESCR50 FROM PS_VC_PLAN_EFFDT B , PS_VC_PAYPRD_TBL C , PS_VC_ELIGSTAT_TBL D , PS_VC_PLAN_TBL E , PS_VC_PLAN_LANG E2 WHERE D.VC_PLAN_ID = B.VC_PLAN_ID AND D.VC_PLAN_ID = E.VC_PLAN_ID AND D.VC_PAYOUT_PRD_ID = C.VC_PAYOUT_PRD_ID AND %EffdtCheck(VC_PLAN_EFFDT, B, C.PRD_END_DT) AND B.EFF_STATUS = 'A' AND B.VC_PLAN_ID = C.VC_PLAN_ID AND VC_PLAN_MEM_CRIT IN ('G', 'T') AND EXISTS ( SELECT 'X' FROM PS_VC_PLAN_MEM A WHERE A.VC_PLAN_ID = D.VC_PLAN_ID AND A.VC_PAYOUT_PRD_ID = D.VC_PAYOUT_PRD_ID) AND E.VC_PLAN_ID = E2.VC_PLAN_ID
|