Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
somu_p
Starting Member
13 Posts |
Posted - 2008-02-29 : 04:18:43
|
| Hi,I've a table called months with one column month. The result set will bemonth=====JanFebMar...Now i want to convert those values as rows. Means,Jan Feb Mar===========Suggest me a solution for the above problem.ThanksSomu |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
Abu-Dina
Posting Yak Master
206 Posts |
Posted - 2008-02-29 : 05:17:33
|
quote: Originally posted by somu_p Hi,I've a table called months with one column month. The result set will bemonth=====JanFebMar...Now i want to convert those values as rows. Means,Jan Feb Mar===========Suggest me a solution for the above problem.ThanksSomu
Please refer to PIVOT and UNPIVOT in BOL for further help + examples. |
 |
|
|
|
|
|