Hello I am new to SQL and would really appreciate some help with transposing a table as follows. Looking at similar posts it seems that this may be accomplished with pivot/unpivot, but I am not sure since the examples I read about have much fewer columns. Any suggestions would be great!
Table.
CATEGORY Value1 Value2 Value3 Value4 ... Value15
Hot 18 17 9 17 ... 18
Warm 5 3 0 1 ... 3
Cold 20 2 1 2 ... 2
Desired Result.
CATEGORY Hot Warm Cold
Value1 18 5 20
Value2 17 3 2
Value3 9 0 1
Value4 17 1 2
… … … …
Value15 18 3 2