SQLServer

The power of Grouping Sets in SQL Server

Have you ever wanted to perform aggregations across multiple columns/dimensions in SQL Server without licensing SSAS (SQL Server Analysis Services)? I am not talking about using the Developer edition in production, nor am I talking about installing a pirate copy of SQL Server. Mission Impossible? Not really, because it’s possible through the so-called Grouping Sets …

The power of Grouping Sets in SQL Server + read more

The dangerous beauty of the PIVOT operator in SQL Server

In today’s blog posting I want to discuss one specific T-SQL language construct in SQL Server – the PIVOT operator that was introduced back with SQL Server 2005. I always refer to this language construct as one of the most dangerous ones in SQL Server – and you will very soon see why. Before we …

The dangerous beauty of the PIVOT operator in SQL Server + read more