SELECT A.LM_ACT_ID , B.LANGUAGE_CD , B.LM_CS_LONG_NM , B.LM_CS_SHRT_NM , B.LM_CS_DESCR , C.LM_DM_LONG_NM FROM PS_LM_ACT A , PS_LM_CI_LANG B , PS_LM_DMTH_TYP_LNG C WHERE A.LM_CI_ID = B.LM_CI_ID AND A.LM_DMTHD_TYPE_ID = C.LM_DMTHD_TYPE_ID AND B.LANGUAGE_CD = C.LANGUAGE_CD UNION SELECT A.LM_ACT_ID , C.LANGUAGE_CD , B.LM_CS_LONG_NM , B.LM_CS_SHRT_NM , B.LM_CS_DESCR , C.LM_DM_LONG_NM FROM PS_LM_ACT A , PS_LM_CI_TBL B , PS_LM_DMTH_TYP_LNG C WHERE A.LM_CI_ID = B.LM_CI_ID AND A.LM_DMTHD_TYPE_ID = C.LM_DMTHD_TYPE_ID AND NOT EXISTS ( SELECT 'X' FROM PS_LM_CI_LANG D WHERE D.LM_CI_ID = B.LM_CI_ID AND D.LANGUAGE_CD = C.LANGUAGE_CD) UNION SELECT A.LM_ACT_ID , B.LANGUAGE_CD , B.LM_CS_LONG_NM , B.LM_CS_SHRT_NM , B.LM_CS_DESCR , C.LM_DM_LONG_NM FROM PS_LM_ACT A , PS_LM_CI_LANG B , PS_LM_DMTH_TYP_TBL C WHERE A.LM_CI_ID = B.LM_CI_ID AND A.LM_DMTHD_TYPE_ID = C.LM_DMTHD_TYPE_ID AND NOT EXISTS ( SELECT 'X' FROM PS_LM_DMTH_TYP_LNG D WHERE D.LM_DMTHD_TYPE_ID = C.LM_DMTHD_TYPE_ID AND D.LANGUAGE_CD = B.LANGUAGE_CD)
|