Introduction
ROLLUP helps you quickly get totals and subtotals in one query, saving time and effort.
When you want to see sales totals by product and also a grand total.
When you need subtotals for different categories in a report.
When you want to summarize data at multiple levels without writing many queries.
When preparing financial reports that show breakdowns and overall totals.
When analyzing data grouped by multiple columns and you want quick summaries.