Skip to content

Commit

Permalink
Correct customer lifetime value calculation in customers
Browse files Browse the repository at this point in the history
Signed-off-by: Wei-Chun, Chang <[email protected]>
  • Loading branch information
wcchang1115 committed Dec 20, 2024
1 parent e525ec3 commit 3efb0c5
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 3efb0c5

Please sign in to comment.