SELECT DISTINCT B.LM_LE_ID ,C.LM_PERSON_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_GROUP_PERSON C , PS_LM_ACT_SEC D , PS_LM_INSTR E , PS_LM_SES_INSTR F ,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 D.LM_ACT_ID = A.LM_ACT_ID AND D.LM_ACT_ID = B.LM_ACT_ID AND C.LM_LRNR_GROUP_ID = D.LM_LRNR_GROUP_ID AND A.LM_ACT_STATUS IN ('1', '2', '3', '5') AND F.LM_ACT_ID = A.LM_ACT_ID AND C.LM_PERSON_ID = F.LM_INSTR_ID AND X1.LM_BAS_LC_TYPE = '60' AND X1.LM_LC_TYPE_ID = H.LM_LC_TYPE_ID UNION SELECT DISTINCT B.LM_LE_ID ,C.LM_PERSON_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_GROUP_PERSON C , PS_LM_ACT_SEC D , PS_LM_INSTR E , PS_LM_SES_INSTR F , 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 D.LM_ACT_ID = A.LM_ACT_ID AND D.LM_ACT_ID = B.LM_ACT_ID AND C.LM_LRNR_GROUP_ID = D.LM_LRNR_GROUP_ID AND A.LM_ACT_STATUS IN ('1', '2', '3', '5') AND E.LM_PERSON_ID = C.LM_PERSON_ID AND A.LM_INSTR_ID = E.LM_PERSON_ID AND X1.LM_BAS_LC_TYPE = '60' AND X1.LM_LC_TYPE_ID = H.LM_LC_TYPE_ID
|