SELECT DISTINCT a.comm_category , b.comm_context ,b.language_cd , b.descr , b.descrshort FROM ps_comm_ca_ctx_tbl a , ps_COMM_CTXT_LANG b WHERE a.institution = b.institution AND a.comm_context = b.comm_context AND b.effdt = ( SELECT MAX(c.effdt) FROM ps_COMM_CTXT_LANG c ,PS_COMM_CTXT_TBL F WHERE c.institution = b.institution AND c.comm_context =b.comm_context AND c.effdt <= %CurrentDateIn AND F.eff_status = 'A' AND C.INSTITUTION=F.INSTITUTION AND C.COMM_CONTEXT=F.COMM_CONTEXT AND C.EFFDT=F.EFFDT) AND a.effdt = ( SELECT MAX(d.effdt) FROM ps_comm_ca_ctx_tbl d WHERE d.institution = a.institution AND d.comm_context = a.comm_context AND d.comm_category = a.comm_category AND d.effdt <= %CurrentDateIn)
|