SELECT A.EMPLID , C.LANGUAGE_CD , C.DESCR , D.DESCR FROM PS_DISCIPLIN_ACTN A , PS_DISCIP_TYP_LANG C , PS_DISCIP_STP_LANG D , PS_DISCIPLIN_STEP E WHERE A.EMPLID = E.EMPLID AND A.DISCIPLINE_DT = E.DISCIPLINE_DT AND A.DISCIPLINARY_TYPE = E.DISCIPLINARY_TYPE AND D.DISCIPLINARY_STEP = E.DISCIPLINARY_STEP AND C.LANGUAGE_CD = D.LANGUAGE_CD AND D.EFFDT = ( SELECT MAX(EFFDT) FROM PS_DISCIP_STP_LANG E1 WHERE E1.DISCIPLINARY_STEP = E.DISCIPLINARY_STEP AND E1.EFFDT <= A.DISCIPLINE_DT) AND A.DISCIPLINARY_TYPE = C.DISCIPLINARY_TYPE AND C.EFFDT = ( SELECT MAX(EFFDT) FROM PS_DISCIP_TYP_LANG C1 WHERE C1.DISCIPLINARY_TYPE = C.DISCIPLINARY_TYPE AND C1.EFFDT <= A.DISCIPLINE_DT)
|