add composite key
This commit is contained in:
parent
7e548f5feb
commit
8979f4d092
1 changed files with 5 additions and 0 deletions
|
|
@ -2,6 +2,11 @@ with
|
||||||
raw_exchange_rates as (select * from {{ source("xedotcom", "exchange_rates") }}),
|
raw_exchange_rates as (select * from {{ source("xedotcom", "exchange_rates") }}),
|
||||||
stg_xedotcom__exchange_rates as (
|
stg_xedotcom__exchange_rates as (
|
||||||
select
|
select
|
||||||
|
concat(
|
||||||
|
{{ adapter.quote("from_currency") }},
|
||||||
|
{{ adapter.quote("to_currency") }},
|
||||||
|
{{ adapter.quote("rate_date_utc") }}
|
||||||
|
) as id_exchange_rate,
|
||||||
{{ adapter.quote("from_currency") }},
|
{{ adapter.quote("from_currency") }},
|
||||||
{{ adapter.quote("to_currency") }},
|
{{ adapter.quote("to_currency") }},
|
||||||
{{ adapter.quote("rate") }},
|
{{ adapter.quote("rate") }},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue