Skip to content
SNOWGLOBE
All posts

SQL Grouping Sets

Martin DebusPosted on LinkedIn

After ROLLUP for Databricks SQL last week, today comes GROUPING SETS.

As the documentation notes, ROLLUP is just syntactic sugar for a specific GROUPING SETS expression.

GROUPING SETS allow for fine granular control over aggregation levels of GROUP BY columns.

This is perfect for multi-dimensional analysis without redundant queries.

Image for the post SQL Grouping SetsView on LinkedIn

Working on this in your platform?

SNOWGLOBE helps teams set up, grow and run Azure Databricks platforms.