data-dwh-dbt-project/models/intermediate/cross/int_simple_exchange_rates.sql
2024-06-14 16:44:40 +02:00

7 lines
309 B
SQL

with
int_daily_currency_exchange_rates as (
select * from {{ ref("int_daily_currency_exchange_rates") }}
)
select er.from_currency, er.to_currency, er.rate, er.rate_date_utc, er.updated_at_utc
from int_daily_currency_exchange_rates er
where er.source = 'xedotcom' or er.source = 'xe_inferred'