SELECT COC.INSTITUTION , COC.ACAD_PROG , COC.ACAD_PLAN , COC.LOCATION , MAX(COC.SSR_TRANS_ID) FROM PS_SSR_HM_CRSE_CMP COC , PS_SSR_HM_UID_MAP MAP WHERE COC.INSTITUTION= MAP.INSTITUTION AND COC.ACAD_PROG = MAP.ACAD_PROG AND COC.ACAD_PLAN = MAP.ACAD_PLAN AND COC.LOCATION = MAP.LOCATION AND COC.SSR_PROVIDER_TYPE = MAP.SSR_PROVIDER_TYPE AND MAP.DELETE_FLAG = 'N' AND MAP.EFF_STATUS = 'A' AND MAP.RECNAME = 'SSR_HM_CRSE_CMP' AND COC.SSR_PROVIDER_TYPE ='HEP' AND COC.IB_RESTMETHOD NOT LIKE 'DELETE' AND COC.SSR_MAP_ID <> 0 GROUP BY COC.INSTITUTION , COC.ACAD_PROG , COC.ACAD_PLAN, COC.LOCATION
|