Skip to content

Commit

Permalink
add models
Browse files Browse the repository at this point in the history
  • Loading branch information
Jstein77 committed May 7, 2024
1 parent a4d1cd9 commit edb7836
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions models/marts/customer360/agg_daily_revenue_by_store.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
select
sum(distinct product_price) as sum_product_price,
date_trunc('day',ordered_at) as orderd_at__day
from {{ref('order_items')}}
group by 2
5 changes: 5 additions & 0 deletions models/marts/customer360/agg_weekly_orders.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
select
count(distinct order_id) as count_orders,
date_trunc('week',ordered_at) as orderd_at__week
from {{ref('orders')}}
group by 2

0 comments on commit edb7836

Please sign in to comment.