Write a SQL query to find the customers who have spent more than $1000 in total, given a table of customer orders.
The solution above is optimal because it uses the GROUP BY and HAVING clauses to group the orders by customer_id and then filter the results to only include customers who have spent more than $1000.
Evaluated at: 2022-11-13 02:15:51