Working with PIVOT Tables In SQL Server Queries
Many data analysts will be familiar with exploring data using Pivot Tables in Excel workbooks. The following example shows the detail sales data for bike related products, and an Excel Pivot Table created from that data:
The Totaldue values are grouped by Quarter and product.