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.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Multiples rows into a Single Row

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-09-17 : 08:21:57
writes "Hi Gurus,

I have a doubt. How can we convert multiple rows into a single row using a single select query?

Code Name
------- ----------
1 Arun
2 Aneesh
3 Dinil
4 Sandeep

The above said is the table and i want the select to return as follows

1 Arun 2 Aneesh 3 Dinil 4 Sandeel.....Upto N Records

I think i had made myself clear. Please help me

With Best Regards

Arun S. Nair"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-09-17 : 08:22:39
This should do the trick:

http://www.sqlteam.com/item.asp?ItemID=2368
Go to Top of Page
   

- Advertisement -