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 2012 Forums
 Transact-SQL (2012)
 Query Help

Author  Topic 

tooba
Posting Yak Master

224 Posts

Posted - 2013-11-23 : 00:59:47
Hi guys, here is my data

ID, NAME
1,MIKE
2,SMITH
1,JOHN
1,JIMMY

I want my data be like this
ID NAME
1,MIKE,JOHN,JIMMY
2,SMITH

Any help would be great appreciated.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2013-11-23 : 01:32:10
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 -