Rollup

Engineering

SQL - ROLLUP with Examples

ROLLUP is a GROUP BY extension that generates subtotals and grand totals in a single query. Instead of writing multiple queries and combining them with UNION ALL, you get hierarchical aggregations…

Read more →