src-db/database/model/views/AD_REF_LIST_V.xml
changeset 9910 6767429386d8
parent 7031 2aac4501bbd5
child 9911 444911e2b851
--- a/src-db/database/model/views/AD_REF_LIST_V.xml	Thu Jan 24 13:16:12 2013 +0100
+++ b/src-db/database/model/views/AD_REF_LIST_V.xml	Mon Feb 04 09:27:53 2013 +0100
@@ -1,13 +1,4 @@
 <?xml version="1.0"?>
   <database name="VIEW AD_REF_LIST_V">
-    <view name="AD_REF_LIST_V"><![CDATA[SELECT ad_ref_list.ad_ref_list_id, ad_ref_list.value, to_char(ad_ref_list.name) AS name, 'en_US' AS ad_language, ad_ref_list.ad_reference_id
-FROM ad_ref_list
-UNION 
-SELECT v1.ad_ref_list_id, v1.value, COALESCE(v1.name_trl, v2.name) AS name, v1.ad_language, v1.ad_reference_id
-FROM (SELECT ad_ref_list.ad_ref_list_id, ad_ref_list.value, to_char(ad_ref_list_trl.name) AS name_trl, '' AS name, ad_ref_list_trl.ad_language, ad_ref_list.ad_reference_id
-FROM ad_ref_list, ad_ref_list_trl
-WHERE ad_ref_list.ad_ref_list_id = ad_ref_list_trl.ad_ref_list_id) v1, (SELECT ad_ref_list.ad_ref_list_id, ad_ref_list.value, to_char(ad_ref_list.name) AS name, ad_language.ad_language, ad_ref_list.ad_reference_id
-FROM ad_ref_list, ad_language
-WHERE ad_language.issystemlanguage = 'Y') v2
-WHERE v1.ad_ref_list_id = v2.ad_ref_list_id AND v1.ad_reference_id = v2.ad_reference_id]]></view>
+    <view name="AD_REF_LIST_V"><![CDATA[SELECT ad_ref_list.ad_ref_list_id, ad_ref_list.value,  to_char(ad_ref_list.name) AS name,  'en_US' AS ad_language,  ad_ref_list.ad_reference_id FROM ad_ref_list UNION  SELECT v1.ad_ref_list_id, v1.value,  COALESCE(v1.name_trl, v2.name) AS name, v1.ad_language,  v1.ad_reference_id FROM (SELECT ad_ref_list.ad_ref_list_id, ad_ref_list.value,  to_char(ad_ref_list_trl.name) AS name_trl, '' AS name,  ad_ref_list_trl.ad_language, ad_ref_list.ad_reference_id FROM ad_ref_list, ad_ref_list_trl WHERE ad_ref_list.ad_ref_list_id = ad_ref_list_trl.ad_ref_list_id) v1,  (SELECT ad_ref_list.ad_ref_list_id, ad_ref_list.value,  to_char(ad_ref_list.name) AS name, ad_language.ad_language,  ad_ref_list.ad_reference_id FROM ad_ref_list, ad_language WHERE ad_language.issystemlanguage = 'Y') v2 WHERE v1.ad_ref_list_id = v2.ad_ref_list_id AND v1.ad_reference_id = v2.ad_reference_id]]></view>
   </database>