SELECT DISTINCT B.SETID , B.JOB_TASK , A.LANGUAGE_CD , A.DESCR FROM PS_JOB_TASK_LANG A , PS_CM_ROLE_COMPS B WHERE A.EFFDT = ( SELECT MAX(EFFDT) FROM PS_JOB_TASK_TBL WHERE A.SETID = SETID AND A.JOB_TASK = JOB_TASK AND EFFDT <= %CurrentDateIn) AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_CM_ROLE_COMPS WHERE B.POSITION_NBR = POSITION_NBR AND B.SETID=SETID AND B.JOBCODE = JOBCODE AND B.JOB_FAMILY = JOB_FAMILY AND B.JOB_TASK = JOB_TASK AND EFFDT <= %CurrentDateIn) AND A.JOB_TASK = B.JOB_TASK AND A.SETID=B.SETID
|