Skip to content

Commit 7ca327e

Browse files
even-weikentwelcome
authored andcommitted
Correct customer lifetime value calculation in customers
1 parent 4cc8e66 commit 7ca327e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

models/customers.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ customer_payments as (
4141
left join orders on
4242
payments.order_id = orders.order_id
4343

44+
where orders.status = 'completed'
4445
group by orders.customer_id
4546

4647
),

0 commit comments

Comments
 (0)