SELECT DISTINCT A.STRM , A.DESCR , B.DESCR , C.DESCR FROM PS_TERM_TBL A , PS_ACAD_CAR_TBL B ,PS_INSTITUTION_TBL C WHERE A.INSTITUTION = B.INSTITUTION AND (A.ACAD_CAREER = B.ACAD_CAREER OR A.ACAD_CAREER = ' ') AND A.INSTITUTION=C.INSTITUTION AND B.EFFDT = ( SELECT MAX(BB.EFFDT) FROM PS_ACAD_CAR_TBL BB WHERE B.INSTITUTION = BB.INSTITUTION AND B.ACAD_CAREER=BB.ACAD_CAREER AND BB.EFFDT <= %CurrentDateIn) AND C.EFFDT = ( SELECT MAX(CC.EFFDT) FROM PS_INSTITUTION_TBL CC WHERE C.INSTITUTION = CC.INSTITUTION AND CC.EFFDT <= %CurrentDateIn)
|