SELECT DISTINCT B.LM_LE_ID , A.LM_ACT_ID , A.LM_ACT_CD , J.LM_CS_LONG_NM FROM PS_LM_ACT A , PS_LM_ACT_LE B , PS_LM_PERSON_ADMIN C , PS_LM_ENRLMT G , PS_LM_LC H , PS_LM_SURVEY_DEFN I , PS_LM_CI_TBL J , PS_LM_LC_TYPE_TBL X1 WHERE G.LM_ACT_ID = H.LM_ACT_ID AND G.LM_ACT_ID = A.LM_ACT_ID AND G.LM_CI_ID = J.LM_CI_ID AND H.LM_SURVEY_ID = I.LM_SURVEY_ID AND H.LM_INTERNAL = 'Y' AND A.LM_ACT_ID = B.LM_ACT_ID AND C.LM_LE_ID = B.LM_LE_ID AND A.LM_ACT_STATUS IN ('1', '2', '3', '5') AND X1.LM_BAS_LC_TYPE = '60' AND X1.LM_LC_TYPE_ID = H.LM_LC_TYPE_ID AND C.LM_PRIMARY = 'Y'
|