Рет қаралды 11,789
❄️Want to SUPERCHARGE your career and become an EXPERT in Snowflake??❄️
Mastering Snowflake is accepting applications now to work with us in a small group. Serious inquiries only pls.
forms.gle/WBqa...
In our next video in this dbt series we look at re-organising our project in data build tool (dbt) on Snowflake.
We create folders for our staging and mart models before moving our configuration blocks into our project yml file. This allows us to apply configurations at a folder level to all models within it.
Additionally, we bring in another staging table from a new schema in Snowflake before adding a fact table to our project. This sets us up for our next lesson.
In this series I'll be producing a series of short videos which are based are dbt's excellent, free training modules found here:
courses.getdbt...
❄️Order my book: Mastering Snowflake Solutions HERE: ❄️
Amazon UK - www.amazon.co....
Amazon US - www.amazon.com...
Amazon AUS - www.amazon.com...
Amazon IND - www.amazon.in/...
stg_payment code:
with payments as (
select
id as payment_id,
orderid,
paymentmethod,
status,
amount,
created
from raw.stripe.payment
)
select * from payments
fct_orders code:
with orders as (
select * from {{ ref('stg_orders')}}
),
payments as (
select * from {{ ref('stg_payment')}}
),
fct_orders as (
select order_id,
payment_id,
amount
from orders o
left join payments p on o.order_id = p.orderid
)
select * from fct_orders
❄️Want to SUPERCHARGE your career and become an EXPERT in Snowflake??❄️
Mastering Snowflake is accepting applications now to work with us in a small group. Serious inquiries only pls. Book a call with us here:
apply.masterin...
❄️Get my Free SnowPro core guide HERE: ❄️
program.master...
❄️Become a student on my course: ❄️
Snowflake Practice Questions - SnowPro Core Certified Udemy Course www.udemy.com/...
❄️Connect with me on Linkedin:❄️
/ adammorton121