I've been reading a lot about SQL Pivots and Unpivots, but I'm not sure how to tackle the problem that I currently have.
Basically, this is my data set.
ItemNumber | Category 1 | Category 2 | Category 3
00001 Books Children Beginner
00002 Games Adults Advanced
How can I rotate this table to get this result?
ItemNumber | 00001 | 00002
Category 1 Books Games
Category 2 Children Adults
Category 3 Beginner Advanced
I was reading about Unpivoting but it looks like Unpivoting doesn't work in my case.
Would appreciate some help.