Given this table (orders):
| id | customer | amount | status |
|---|---|---|---|
| 1 | Alice | 100 | shipped |
| 2 | Alice | 200 | pending |
| 3 | Bob | 300 | shipped |
| 4 | Bob | 400 | pending |
What does this query return?
SELECT customer, SUM(amount) FROM orders WHERE status = 'shipped' GROUP BY customer;
← → arrow keys to navigate
Sign in to save your progress.