EasyOutput prediction
GROUP BY multiple columns
Given this table (orders):
| id | customer | status |
|---|---|---|
| 1 | Alice | shipped |
| 2 | Alice | shipped |
| 3 | Alice | pending |
| 4 | Bob | pending |
How many rows does this query return?
SELECT customer, status, COUNT(*) FROM orders GROUP BY customer, status;
← → arrow keys to navigate
Sign in to save your progress.