Skip to main content
These functions can be applied to group data.

ROLLUP(expr)

Calculates n + 1 aggregates for n number of columns in expr

CUBE(expr)

Calculates 2n aggregates for n number of columns in expr

GROUPING SETS(expr)

Calculates aggregates for any given aggregates in expr, including ROLLUP() and CUBE()