|
Hello All I have an intermediate table result which looks like this
I need to transform this result set into something like this
I guess i have to use PIVOTing for the same. But im stuck in the point where i cannot use the COUNT/SUM operator inorder to get the CONTENT column.Can anyone help me with the query for achieving the result ??? Thanks in advance
(comments are locked)
|
(comments are locked)
|


can you post your sample data in the form of
declare @test table ( . . . )
insert into @test ...
insert into @test ...
i can't tell which data belongs to which column from what you have posted
rainmaker, any feedback on the code I posted?