How many rows does this return?
-- PostgreSQL; sales has regions EU, US, APAC SELECT region, SUM(total) FROM sales GROUP BY ROLLUP (region);
- 6
- 4
- 1
- 3
ROLLUP adds a grand-total row (region NULL) after the three per-region rows.-- PostgreSQL; sales has regions EU, US, APAC SELECT region, SUM(total) FROM sales GROUP BY ROLLUP (region);
ROLLUP adds a grand-total row (region NULL) after the three per-region rows.