Click here to Skip to main content
15,885,804 members
Articles / Database Development / SQL Server

Pivot two or more columns in SQL Server 2005

Rate me:
Please Sign up or sign in to vote.
4.77/5 (22 votes)
18 Dec 2008CPOL4 min read 179.2K   2K   58  
A workaround for the limitation of only being able to pivot one column.

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

No alternatives have been posted.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired None
Australia Australia
Started my programming life writing Excel 1.0 macros, God what a long time ago.

Now I'm a dotnet developer, I get to influence direction, play with new toys, build stuff, life is wonderful.

Greatest buzz you can get, walk past a row of desks and see your application running on all of them (and getting paid).

Greatest irritant, pouring 12 months of knowledge and experience into an empty head only to have it leave.

And now I'm retired, no deadlines, no meetings, no managers (except the ONE) and no users!

Comments and Discussions