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)
 Combine two records of a column

Author  Topic 

sql_server_dba
Posting Yak Master

167 Posts

Posted - 2010-10-15 : 14:57:12
Hi All,

Need small help with a query...I have a table with two columns
col1 col2
1 p
1 q
1 r
2 x
2 y

Now i want the output as
col1 col2
1 p,q,r
2 x,y

could anyone please let me know how i can do this? there should be no temp tables in the script because i am going to use this in the front end. This is in SQL 2000. so no use of cross apply. Any help would be highly appreciated.

Thanks in Advance.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-16 : 06:21:06
see this:
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=53293


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -