SELECT A.INSTITUTION , A.EMPLID , A.SEQ_NO , B.LANGUAGE_CD , B.DESCR , C.DESCR , D.DESCR , E.DESCR FROM PS_AV_LEGACY_DEG A , PS_INSTITUTION_LNG B , PS_ACCOMP_TBL_LANG C , PS_CAMPUS_LANG D , PS_ACAD_ORG_TBL_LN E WHERE A.INSTITUTION = B.INSTITUTION AND B.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_INSTITUTION_LNG B1 WHERE B1.INSTITUTION = B.INSTITUTION AND B1.EFFDT <= %CurrentDateIn) AND A.ACCOMPLISHMENT = C.ACCOMPLISHMENT AND A.INSTITUTION = D.INSTITUTION AND A.CAMPUS = D.CAMPUS AND D.EFFDT = ( SELECT MAX(D1.EFFDT) FROM PS_CAMPUS_LANG D1 WHERE D1.INSTITUTION = D.INSTITUTION AND D1.CAMPUS = D.CAMPUS AND D1.EFFDT <= %CurrentDateIn) AND A.INSTITUTION = E.INSTITUTION AND A.ACAD_ORG = E.ACAD_ORG AND E.EFFDT = ( SELECT MAX(E1.EFFDT) FROM PS_ACAD_ORG_TBL_LN E1 WHERE E1.INSTITUTION = E.INSTITUTION AND E1.ACAD_ORG = E.ACAD_ORG AND EFFDT <= %CurrentDateIn)
|