( SELECT D.HRS_SCREENING_ID ,E.LANGUAGE_CD ,E.DESCR FROM PS_HRS_SCREEN_TBL D ,PS_HRS_SCREEN_LNG E WHERE D.HRS_SCREENING_ID=E.HRS_SCREENING_ID AND D.HRS_SCR_AFT_SUB <> 'Y' AND D.HRS_PRE_APP_SCR <> 'Y' AND D.STATUS='A') UNION ( SELECT 999999999999997 ,E.LANGUAGE_CD ,COALESCE(E.MESSAGE_TEXT ,'Online Screening') FROM PS_HRS_SCREEN_TBL D LEFT OUTER JOIN PSMSGCATLANG E ON 1=1 AND E.MESSAGE_SET_NBR=18178 AND E.MESSAGE_NBR=1333 WHERE D.HRS_SCR_AFT_SUB = 'Y' AND D.STATUS='A') UNION ( SELECT 999999999999998 ,E.LANGUAGE_CD ,COALESCE(E.MESSAGE_TEXT ,'Pre Screening') FROM PS_HRS_SCREEN_TBL D LEFT OUTER JOIN PSMSGCATLANG E ON 1=1 AND E.MESSAGE_SET_NBR=18178 AND E.MESSAGE_NBR=1332 WHERE D.HRS_PRE_APP_SCR = 'Y' AND D.STATUS='A') UNION ( SELECT 999999999999999 ,E.LANGUAGE_CD ,COALESCE(E.MESSAGE_TEXT ,'Additional Questions') FROM PS_INSTALLATION LEFT OUTER JOIN PSMSGCATLANG E ON 1=1 AND E.MESSAGE_SET_NBR=18178 AND E.MESSAGE_NBR=1334 )
|