Skip to content
Advertisement

SQL unpivoting columns

How to unpivot table:

to this:

What I have so far is :

but this is giving me count for all months. I need this with month number and count value for that month. Values 1-9 could be any numbers.

Advertisement

Answer

Got it working with

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement