SELECT U.EONC_USER_LIST_ID , L.LANGUAGE_CD , COALESCE(( SELECT UL.DESCR100 FROM PS_EONC_USRLST_HDL UL WHERE UL.EONC_USER_LIST_ID = U.EONC_USER_LIST_ID AND UL.LANGUAGE_CD = L.LANGUAGE_CD) , (U.DESCR100), ' ') , COALESCE(( SELECT XL.XLATSHORTNAME FROM PSXLATITEMLANG XL WHERE XL.FIELDNAME = 'EONC_USER_SOURCE' AND XL.FIELDVALUE = U.EONC_USER_SOURCE AND XL.LANGUAGE_CD = L.LANGUAGE_CD AND %EffdtCheck(PSXLATITEMLANG XL1, XL, %CurrentDateIn)), ( SELECT X.XLATSHORTNAME FROM PSXLATITEM X WHERE X.FIELDNAME = 'EONC_USER_SOURCE' AND X.FIELDVALUE = U.EONC_USER_SOURCE AND %EffdtCheck(PSXLATITEM X1, X, %CurrentDateIn)), ' ') FROM PS_EONC_USRLST_HDR U, PSLANGUAGES L , PSXLATITEM X1 WHERE L.INSTALLED = 1 AND L.LANGUAGE_CD <> ( SELECT O.LANGUAGE_CD FROM PSOPTIONS O)
|