SQL - GROUP BY and HAVING
Given the table
orders(order_id, customer_id, amount), what will this query return?SELECT customer_id, COUNT(*) AS order_count FROM orders WHERE amount > 50 GROUP BY customer_id HAVING order_count > 2;
