EasyOutput prediction

Basic HAVING clause

Given this table (orders):

idcustomeramount
1Alice100
2Bob200
3Alice300
4Bob50

What does this query return?

SELECT customer, SUM(amount) AS total
FROM orders
GROUP BY customer
HAVING SUM(amount) > 300;

← → arrow keys to navigate

Sign in to save your progress.