EasyOutput prediction

HAVING with COUNT

Given this table (orders):

idcustomer
1Alice
2Bob
3Alice
4Carol
5Alice

What does this query return?

SELECT customer, COUNT(*) AS order_count
FROM orders
GROUP BY customer
HAVING COUNT(*) >= 2;

← → arrow keys to navigate

Sign in to save your progress.

HAVING with COUNT - SQL Filtering Groups Quiz | Unnested