SELECT B.INSTITUTION ,D.AID_YEAR ,D.item_type ,C.item_type FROM ps_set_cntrl_rec A , ps_INSTITUTION_tbl B , ps_item_type_tbl C , PS_SFA_EA_ITM_XREF d WHERE A.setcntrlvalue = B.institution AND B.INSTITUTION = D.INSTITUTION AND A.recname = 'ITEM_TYPE_TBL' AND C.SFA_EA_TYPE = D.SFA_EA_TYPE AND C.SFA_EA_SOURCE = D.SFA_EA_SOURCE AND C.SFA_EA_PROGRAM_CD = D.SFA_EA_PROGRAM_CD AND C.setid = A.setid AND %EffdtCheck(ITEM_TYPE_TBL C1, C, %CurrentDateIn) AND C.EFF_STATUS = 'A' AND %EffdtCheck(INSTITUTION_TBL B1, B, %CurrentDateIn) AND B.EFF_STATUS = 'A'
|