π§ Grouping Sets
π§ Coming soon: Subtotals and grand totals with GROUPING_ID()
.
-- Placeholder example
SELECT Region, ProductCategory, SUM(Amount) AS Sales
FROM dbo.Facts
GROUP BY GROUPING SETS ( (Region, ProductCategory), (Region), () );
π§ Coming soon: Subtotals and grand totals with GROUPING_ID()
.
-- Placeholder example
SELECT Region, ProductCategory, SUM(Amount) AS Sales
FROM dbo.Facts
GROUP BY GROUPING SETS ( (Region, ProductCategory), (Region), () );