Professional Documents
Culture Documents
/* INSERT NEW ISO COUNTRY DATA INTO STAGING TABLE FROM CURENT XGC DATABASE */
INSERT INTO LRO_XGC_COUNTRY_STG (
iso_country_cd,
lang_cd,
country_nam,
is_exonym_ind,
is_tran_ind,
is_default_lang_ind,
creation_ts,
last_update_ts,
creation_usr,
last_update_usr,
map_version_nam
)
SELECT DISTINCT b.iso_country_code,
b.lan_code,
b.name,
b.is_exonym,
b.is_trans,
decode(a.default_language, b.lan_code, 'Y', 'N') as is_default_lang_
ind,
systimestamp,
systimestamp,
'&xgc_usr_short_name',
'&xgc_usr_short_name',
'&map_version'
FROM gc_country@&xgc_usr&_link a,
gc_country_name@&xgc_usr&_link b
WHERE a.comf_id = b.country_id;
COMMIT;