SELECT DISTINCT A.DISP_TMPL_ID , L.LANGUAGE_CD , L.DESCR30 FROM PS_RDT_TMPL_DEFN A , PS_RDT_TMPL_DEFN_L L , PS_RDT_TMPL_COMP B , PS_RDT_TMPL_OPT C WHERE A.DISP_TMPL_ID = B.DISP_TMPL_ID AND A.DISP_TMPL_ID = L.DISP_TMPL_ID AND B.DISP_TMPL_ID = C.DISP_TMPL_ID AND B.PNLGRPNAME = C.PNLGRPNAME AND B.MARKET = C.MARKET AND C.LIC_PROD_CD IN ( SELECT FIELDNAME FROM PSRECFIELD WHERE RECNAME = 'INSTALLATION' AND (FIELDNAME IN ( SELECT 'RC' FROM PS_INSTALLATION WHERE RC = 'Y') OR FIELDNAME IN ( SELECT 'RH' FROM PS_INSTALLATION WHERE RH = 'Y') OR FIELDNAME IN ( SELECT 'RHHR' FROM PS_INSTALLATION WHERE RHHR = 'Y') OR FIELDNAME IN ( SELECT 'RCSS' FROM PS_INSTALLATION WHERE RCSS = 'Y') OR FIELDNAME IN ( SELECT 'RHSS' FROM PS_INSTALLATION WHERE RHSS = 'Y')))
|