SELECT HDR.CONTRACT_NUM , AP.ACCT_PLAN_ID , APL.LANGUAGE_CD , APL.DESCR FROM PS_CA_CONTR_HDR HDR , PS_CA_ACCTPLAN AP ,PS_CA_ACCTPLN_LANG APL , PS_CA_AP_EVENT EVT WHERE HDR.CONTRACT_NUM = AP.CONTRACT_NUM AND AP.CONTRACT_NUM = EVT.CONTRACT_NUM AND AP.ACCT_PLAN_ID = EVT.ACCT_PLAN_ID AND AP.CONTRACT_NUM = APL.CONTRACT_NUM AND AP.ACCT_PLAN_ID = APL.ACCT_PLAN_ID UNION SELECT HDR.CONTRACT_NUM , APL.ACCT_PLAN_ID , APL.LANGUAGE_CD , APL.DESCR FROM PS_CA_CONTR_HDR HDR , PS_CA_ACCTPLAN AP ,PS_CA_ACCTPLN_LANG APL , PS_CA_AP_EVT_CHG EVT WHERE HDR.CONTRACT_NUM = AP.CONTRACT_NUM AND AP.CONTRACT_NUM = EVT.CONTRACT_NUM AND AP.ACCT_PLAN_ID = EVT.ACCT_PLAN_ID AND AP.CONTRACT_NUM = APL.CONTRACT_NUM AND AP.ACCT_PLAN_ID = APL.ACCT_PLAN_ID
|