Question : Trasnpose rows and columns in SQL

How do i transpose the following
Year Jan Feb Mar Apr Etc
2010 16   22   13   18
into
Year      Month     Value
2010       Jan          16
2010       Feb          22
Etc

I can do the year and month but can't get the value

Answer : Trasnpose rows and columns in SQL

SELECT [Year], "Jan" AS [Month], Jan AS [Value]
FROM SomeTable
UNION ALL
SELECT [Year], "Feb" AS [Month], Feb AS [Value]
FROM SomeTable
UNION ALL
SELECT [Year], "Mar" AS [Month], Mar AS [Value]
FROM SomeTable
UNION ALL
...
UNION ALL
SELECT [Year], "Dec" AS [Month], Dec AS [Value]
FROM SomeTable
Random Solutions  
 
programming4us programming4us