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 |
|
mavericky
Posting Yak Master
117 Posts |
Posted - 2011-09-27 : 15:10:18
|
| Hi,In a sql table, say there is a column ID. Now ID can have values from 1 to 100. I can display them in 1 column and 100 rows. Is there a way to display all of them in 1 column and 1 row, ie. in the 1st row and 1st column - 1,2,3,..., 100.Thanks,Mavericky |
|
|
robvolk
Most Valuable Yak
15732 Posts |
Posted - 2011-09-27 : 15:24:29
|
| Why? |
 |
|
|
TG
Master Smack Fu Yak Hacker
6065 Posts |
|
|
vmvadivel
Yak Posting Veteran
69 Posts |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2011-09-27 : 23:14:42
|
| If its 2005 or above certainly FOR XML PATH method in TG s posted link performs much better than scalar UDF method------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|