I have a following table :
CREATE TABLE [dbo].[TestTranspose](
[ResultA] [int] NULL,
[ResultB] [int] NULL,
) ON [PRIMARY]
Whose result set is
ResultA ResultB ... ResultZ
1 10
2 20
Desired result required is:
Name Compare1 Compare2
ResultA 10 11
ResultB 22 33
...
ResultZ.
I know this needs to be done using STUFF to get all the columns and the use unpivot/pivot but just not able to get it working.