Slide 10
Slide 10 text
select
id as order_id,
user_id as customer_id,
order_date,
status
from
{{ source('main', 'raw_orders') }}
select
id as order_id,
user_id as customer_id,
order_date,
status
from
"tutorial"."main"."raw_orders"
What is dbt?
❏ When you create the query shown on the left as stg_orders.sql and run
dbt, the appropriate DB and table are referenced from the configuration.
❏ From the query, you can visualize the dependency of the process
"stg_orders was created by referencing raw_orders".