SELECT RowNo, [web], [classic], [platinum] FROM( SELECT ROW_NUMER() OVER (ORDER BY Price) RowNo, Goods, Price FROM YourTable ) AS DT PIVOT(SUM(Price) FOR [RowNo] IN ([web], [classic], [platinum])) AS PT
[web], [classic], [platinum]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)