SQL Server PIVOT with multiple X-axis columns?

Ok, as you said, you are gonna need dynamic SQL, so first go to this link . Once you read that, try the following.

Select payroll, forname,surname,20113 as 201103, 20126 as 201206, 20127 as 201207, 20128 as 201208 from (select Payroll, Forname, Surname, YEAR+MONTH as d, Amount from pivot1) up pivot(sum(up. Amount) for up. D in (20113, 20126, 20127, 20128)) as pvt.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions