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