Skip to content

Commit

Permalink
Correct customer lifetime value calculation in customers
Browse files Browse the repository at this point in the history
  • Loading branch information
even-wei authored and wcchang1115 committed Jun 19, 2024
1 parent a35d3f4 commit e9fbba7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/customers.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ customer_payments as (
left join orders on
payments.order_id = orders.order_id

where orders.status = 'completed'
group by orders.customer_id

),
Expand Down

0 comments on commit e9fbba7

Please sign in to comment.