SELECT HS.EMPLID , HS.ACTION_DT_SS , HS.EFFSEQ , HS.HS_EMPLID , HS.REG_REGION , HS.TEST_CODE , HS.START_DATE , L.LANGUAGE_CD , COALESCE (( SELECT NL.NAME_DISPLAY FROM PS_NAMES_LNG NL WHERE NL.EMPLID = HS.EMPLID AND NL.NAME_TYPE = 'PRI' AND NL.LANGUAGE_CD = L.LANGUAGE_CD AND %EffdtCheck(NAMES_LNG NL1, NL, %CurrentDateIn)), ( SELECT N.NAME_DISPLAY FROM PS_NAMES N WHERE N.EMPLID = HS.EMPLID AND N.NAME_TYPE = 'PRI' AND %EffdtCheck(NAMES N1, N, %CurrentDateIn)), ' ') , COALESCE (( SELECT TL.DESCR FROM PS_HS_TEST_LANG TL WHERE TL.SETID = RR.DEFAULT_SETID AND TL.TEST_CODE = HS.TEST_CODE AND TL.LANGUAGE_CD = L.LANGUAGE_CD AND %EffdtCheck(HS_TEST_LANG TL1, TL, %CurrentDateIn)), ( SELECT TST.DESCR FROM PS_HS_TEST_TBL TST WHERE TST.SETID = RR.DEFAULT_SETID AND TST.TEST_CODE = HS.TEST_CODE AND %EffdtCheck(HS_TEST_TBL TST1, TST, %CurrentDateIn)), ' ') FROM PS_HS_SS_TEST_DAT HS , PSLANGUAGES L , PS_REG_REGION_TBL RR WHERE RR.REG_REGION = HS.REG_REGION
|