I am trying to pivot on multiple columns. I am using SQL server 2008. Here is what I have tried so far
CREATE TABLE #t ( id int, Rscd varchar(10),Accd varcha
Dont Use the ID Column. Use a derived table to retrieve all columns except the ID and then use the PIVOT table.