diff --git a/models/reporting/general/daily_currency_exchange_rates.sql b/models/reporting/general/daily_currency_exchange_rates.sql index ceff7d4..65235b8 100644 --- a/models/reporting/general/daily_currency_exchange_rates.sql +++ b/models/reporting/general/daily_currency_exchange_rates.sql @@ -1,4 +1,7 @@ -with daily_currency as (select * from {{ ref("int_daily_currency_exchange_rates") }}) +with + int_daily_currency_exchange_rates as ( + select * from {{ ref("int_daily_currency_exchange_rates") }} + ) select id_exchange_rate as id_exchange_rate, from_currency as from_currency, @@ -8,4 +11,4 @@ select source as source, rate_version as rate_version, updated_at_utc as updated_at_utc -from daily_currency +from int_daily_currency_exchange_rates diff --git a/models/reporting/general/simple_exchange_rates.sql b/models/reporting/general/simple_exchange_rates.sql index 1a56616..fc4dfd1 100644 --- a/models/reporting/general/simple_exchange_rates.sql +++ b/models/reporting/general/simple_exchange_rates.sql @@ -1,8 +1,8 @@ -with simple_exchange_rates as (select * from {{ ref("int_simple_exchange_rates") }}) +with int_simple_exchange_rates as (select * from {{ ref("int_simple_exchange_rates") }}) select from_currency as from_currency, to_currency as to_currency, rate as rate, rate_date_utc as rate_date_utc, updated_at_utc as updated_at_utc -from simple_exchange_rates +from int_simple_exchange_rates