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