SyntaxFix
Write A Post
Hire A Developer
Questions
This is what you can do:
SELECT * FROM yourTable PIVOT (MAX(xCount) FOR Week in ([1],[2],[3],[4],[5],[6],[7])) AS pvt
DEMO