SQL - GROUP BY and HAVING
What result does this query produce on the transactions table with columns store and sales?
SELECT store, SUM(sales) FROM transactions GROUP BY store HAVING SUM(sales) > 1000;
What result does this query produce on the transactions table with columns store and sales?
SELECT store, SUM(sales) FROM transactions GROUP BY store HAVING SUM(sales) > 1000;
store column.sales for each store.HAVING clause keeps only stores where the sum of sales is greater than 1000.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions