Merge branch 'build-exchange-rate-analysis' into 'main'

Changed comparison competitor

See merge request cief-data/dbt_cloud!38
This commit is contained in:
CIEF ACC1
2024-04-01 10:00:15 +00:00
@@ -59,7 +59,7 @@ restructure_and_expand_table_cief_vs_world_rate AS (
),
restructure_and_expand_table_cief_1688_vs_c2m_altr AS (
restructure_and_expand_table_cief_1688_vs_c2m_tbdf AS (
SELECT
t1.provider,
@@ -83,7 +83,7 @@ restructure_and_expand_table_cief_1688_vs_c2m_altr AS (
LEFT JOIN currency_exchange_rate_compilation t2
ON ( t1.exchange_rate_date = t2.exchange_rate_date )
AND t2.provider = 'C2M'
AND t2.service_type = 'ALTR'
AND t2.service_type = 'TBDF'
WHERE
t1.provider = 'CIEF'
@@ -94,7 +94,7 @@ restructure_and_expand_table_cief_1688_vs_c2m_altr AS (
),
restructure_and_expand_table_cief_1_day_transfer_vs_c2m_tbdf AS (
restructure_and_expand_table_cief_1_day_transfer_vs_c2m_altr AS (
SELECT
t1.provider,
@@ -118,7 +118,7 @@ restructure_and_expand_table_cief_1_day_transfer_vs_c2m_tbdf AS (
LEFT JOIN currency_exchange_rate_compilation t2
ON ( t1.exchange_rate_date = t2.exchange_rate_date )
AND t2.provider = 'C2M'
AND t2.service_type = 'TBDF'
AND t2.service_type = 'ALTR'
CROSS JOIN get_base_myr_value_for_comparison
@@ -171,9 +171,9 @@ union_expanded_tables AS (
SELECT * FROM restructure_and_expand_table_cief_vs_world_rate
UNION ALL
SELECT * FROM restructure_and_expand_table_cief_1688_vs_c2m_altr
SELECT * FROM restructure_and_expand_table_cief_1688_vs_c2m_tbdf
UNION ALL
SELECT * FROM restructure_and_expand_table_cief_1_day_transfer_vs_c2m_tbdf
SELECT * FROM restructure_and_expand_table_cief_1_day_transfer_vs_c2m_altr
UNION ALL
SELECT * FROM restructure_and_expand_table_cief_3_days_vs_sd