Do more with less: Using the PIVOT operator on SQL Server 2005+(code.sayao.net)
submitted by
sayao(85) 2 years, 9 months ago
The PIVOT operator is used to transform rows into column by an aggregate function. One big limitation is that you have to know the columns, but still, it's useful on some use cases, like when you want to aggregate something by hours (for example).
|category: Database
|Views: 6
tags:
Database another
Everyones tags:
Your Tags: