SQL - GROUP BY and HAVING
Given a table
orders with columns customer_id and amount, what will this query return?SELECT customer_id, SUM(amount) FROM orders GROUP BY customer_id;