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 20, 2024
1 parent 79d82b5 commit 383a007
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 383a007

Please sign in to comment.