Only this week, get the SQL Complete Track of 9 courses in a special prize of $330$89!
Introduction
GROUP BY – Recap
ROLLUP
Summary

## Instruction

Perfect! You can see that by reversing the order of the columns inside the ROLLUP's parentheses, we changed one of the groupings.

As a general rule, ROLLUP will always show new grouping combinations by removing columns one by one, starting from the right:

GROUP BY ROLLUP (A, B, C) =
GROUP BY (A, B, C) +
GROUP BY (A, B) +
GROUP BY (A) +
GROUP BY ()