SELECT DISTINCT A.STRM , A.LANGUAGE_CD , A.DESCR , B.DESCR , C.DESCR FROM PS_TERM_TBL_LANG A , PS_ACAD_CAR_LANG B ,PS_INSTITUTION_LNG C WHERE A.INSTITUTION = B.INSTITUTION AND A.LANGUAGE_CD = B.LANGUAGE_CD AND (A.ACAD_CAREER = B.ACAD_CAREER OR A.ACAD_CAREER = ' ') AND A.INSTITUTION=C.INSTITUTION AND A.LANGUAGE_CD = C.LANGUAGE_CD AND B.EFFDT = ( SELECT MAX(BB.EFFDT) FROM PS_ACAD_CAR_LANG 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_LNG CC WHERE C.INSTITUTION = CC.INSTITUTION AND CC.EFFDT <= %CurrentDateIn)
|