SELECT A.PORTAL_NAME , CASE A.PORTAL_HOSTNODENAM WHEN 'LOCAL_NODE' THEN C.MSGNODENAME WHEN ' ' THEN C.MSGNODENAME ELSE A.PORTAL_HOSTNODENAM END , C.URI_TEXT FROM %Table(PSPRDMDEFN) A ,%Table(PTLCLBASEURI_VW) C WHERE A.PORTAL_HOSTNODENAM = 'LOCAL_NODE' UNION ALL SELECT A.PORTAL_NAME , CASE A.PORTAL_HOSTNODENAM WHEN 'LOCAL_NODE' THEN C.MSGNODENAME WHEN ' ' THEN C.MSGNODENAME ELSE A.PORTAL_HOSTNODENAM END , B.URI_TEXT FROM %Table(PSPRDMDEFN) A LEFT OUTER JOIN %Table(PSNODEURITEXT) B ON (A.PORTAL_HOSTNODENAM=B.MSGNODENAME AND B.URI_TYPE = 'PL' ) ,%Table(PTLCLBASEURI_VW) C WHERE A.PORTAL_HOSTNODENAM <> 'LOCAL_NODE'
|