mirror of
https://gitlab.com/cief-data/dbt_cloud.git
synced 2026-08-19 04:14:00 +00:00
init from dbt cloud hosting repo
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
-- IMPORTS
|
||||
WITH currencies AS (
|
||||
SELECT * FROM {{ source('src_exchange_mysql', 'currencies') }}
|
||||
),
|
||||
|
||||
|
||||
-- LOGIC
|
||||
currencies_rename AS (
|
||||
|
||||
SELECT
|
||||
currencies.id,
|
||||
currencies.country_id,
|
||||
currencies.name,
|
||||
currencies.short_code,
|
||||
currencies.symbol,
|
||||
currencies.deleted_at,
|
||||
currencies.created_at,
|
||||
currencies.updated_at,
|
||||
current_timestamp() AS _dbt_ran_at
|
||||
|
||||
FROM currencies
|
||||
),
|
||||
|
||||
|
||||
-- FINAL
|
||||
final__base_exchange__currencies AS (
|
||||
|
||||
SELECT
|
||||
id,
|
||||
country_id,
|
||||
name,
|
||||
short_code,
|
||||
symbol,
|
||||
deleted_at,
|
||||
created_at,
|
||||
updated_at,
|
||||
_dbt_ran_at
|
||||
|
||||
FROM currencies_rename
|
||||
|
||||
)
|
||||
|
||||
SELECT * FROM final__base_exchange__currencies
|
||||
Reference in New Issue
Block a user