Home › Glossary › ROLLUP

ROLLUP

An option for GROUP BY, available in both Spark SQL and T-SQL, that produces subtotals at each level of a hierarchy plus an overall total; for example ROLLUP(a, b) groups by (a, b), then by (a), then by nothing. CUBE goes further and covers every combination of the columns.

Read more: Microsoft Learn

In the Ultra Transcenders books

DP-700DP-800

Each book explains ROLLUP in context, with comparison tables and the common traps.

Terms in this definition

Related terms

See ROLLUP in the full glossary