SELECT DISTINCT E.LM_ENRLMT_ID , D.LM_PERSON_ID , A.LM_CI_ID , A.LM_ACT_ID ,LVW.LANGUAGE_CD , LVW.LM_DM_LONG_NM FROM PS_LM_ACT_CI_VW A , PS_LM_LC_SES_FL_VW B , PS_LM_ACT_SEC C , PS_LM_PERS_LGRP_VW D , PS_LM_ENRLMT E , PS_LM_ACT_CI_LVW LVW WHERE A.LM_ACT_ID=B.LM_ACT_ID AND A.LM_ACT_STATUS='1' AND A.LM_ACT_ID = C.LM_ACT_ID AND A.LM_ACT_ID = LVW.LM_ACT_ID AND C.LM_LRNR_GROUP_ID=D.LM_LRNR_GROUP_ID AND (A.LM_END_DT>=%CurrentDateIn OR A.LM_END_DT IS NULL) AND E.LM_ACT_ID=A.LM_ACT_ID AND E.LM_CI_ID=A.LM_CI_ID AND E.LM_PERSON_ID=D.LM_PERSON_ID AND E.LM_STTS IN ('ENRL','INPO','PEAP','PEPA','PPYA','WTLT', 'COMP','INCO')
|