Hi there,
I have a SQL table like so
PV Area CouterParty 851 M010 Name1 561 M011 Name2 869 M012 Name3 ...
And I need to transpost it, using T-SQL (not reporting services or anything else), so that it looks like this:
CounterParty M010 M011 M012 .... Name1 851 Name2 561 Name2 869
The thing is that I do not know how many Area codes I will have, so there could be any number of columns really.
Any ideas how I can do this? Thanks a milion