Grouping Sets: the CUBE and ROLLUP subclauses

In my last blog posting I talked about the Grouping Set functionality in SQL Server. As you have seen with the examples from last week, it is very easy to perform individual groupings by simply defining the necessary grouping sets. But what if you want to have all possible groups from a given set of …

Grouping Sets: the CUBE and ROLLUP subclauses + read more