src-db/database/model/views/AD_REF_LIST_V.xml
changeset 6917 20af736f8ca9
parent 6912 38c773f35773
child 7022 825f121b6164
equal deleted inserted replaced
6916:bbc68a0afe71 6917:20af736f8ca9
     1 <?xml version="1.0"?>
     1 <?xml version="1.0"?>
     2   <database name="VIEW AD_REF_LIST_V">
     2   <database name="VIEW AD_REF_LIST_V">
     3     <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
     3     <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
     4            FROM ad_ref_list
     4    FROM ad_ref_list
     5 UNION 
     5 UNION 
     6          SELECT v1.ad_ref_list_id, v1.value, COALESCE(v1.name_trl, v2.name) AS name, v1.ad_language, v1.ad_reference_id
     6  SELECT v1.ad_ref_list_id, v1.value, COALESCE(v1.name_trl, v2.name) AS name, v1.ad_language, v1.ad_reference_id
     7            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
     7    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
     8                    FROM ad_ref_list, ad_ref_list_trl
     8            FROM ad_ref_list, ad_ref_list_trl
     9                   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
     9           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
    10                    FROM ad_ref_list, ad_language
    10            FROM ad_ref_list, ad_language
    11                   WHERE ad_language.issystemlanguage = 'Y') v2
    11           WHERE ad_language.issystemlanguage = 'Y') v2
    12           WHERE v1.ad_ref_list_id = v2.ad_ref_list_id AND v1.ad_reference_id = v2.ad_reference_id]]></view>
    12   WHERE v1.ad_ref_list_id = v2.ad_ref_list_id AND v1.ad_reference_id = v2.ad_reference_id]]></view>
    13   </database>
    13   </database>