From 5cfe45445a8491d4554395e688ccdfd1b5bf74e8 Mon Sep 17 00:00:00 2001 From: Chaerin Lee <59982185+chaerinlee1@users.noreply.github.com> Date: Thu, 9 Sep 2021 11:49:00 -0600 Subject: [PATCH] Update models/customers.sql Co-authored-by: Anders --- models/customers.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/customers.sql b/models/customers.sql index 4526bc51a..1fc9c53e9 100644 --- a/models/customers.sql +++ b/models/customers.sql @@ -33,7 +33,7 @@ customer_orders as ( customer_payments as ( select - o.customer_id, + orders.customer_id, sum(amount) as total_amount from payments p