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 2005 Forums
 Transact-SQL (2005)
 hi

Author  Topic 

renu
Starting Member

47 Posts

Posted - 2008-03-12 : 02:46:36
HI all,
there is a table with column
x y
----------------
1 1
1 2
1 3
1 4
2 5
2 6
2 7

now my result should be
x y
---------------
1 1,2,3,4
2 5,6,7
--------------
how can i achieve this without using functions

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-03-12 : 02:55:06
see
http://sqlblog.com/blogs/adam_machanic/archive/2006/07/12/rowset-string-concatenation-which-method-is-best.aspx
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -