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 kentwelcome committed May 14, 2024
1 parent 3d9cdc1 commit 231f592
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 231f592

Please sign in to comment.