June 13, 2008 at 2:43 pm
Hi,
It should work on SQL2005 and 2000.
id name
-- -----
1 John
1 Bill
1 Marc
4 Jack
I need:
id name
-- -----
1 John;Bill;Marc;Jack.
Thanks,
M.Z.
June 13, 2008 at 3:13 pm
Try this.
Select TOP 1 ID, coalesce(Name,'')+ ';' + Name
FROM Table1
Where ID = 1
June 13, 2008 at 3:48 pm
zubamark (6/13/2008)
Hi,It should work on SQL2005 and 2000.
id name
-- -----
1 John
1 Bill
1 Marc
4 Jack
I need:
id name
-- -----
1 John;Bill;Marc;Jack.
Thanks,
M.Z.
This question seems to have already been asked.
http://www.sqlservercentral.com/Forums/Topic466976-149-1.aspx
June 13, 2008 at 8:18 pm
It's one of the most frequently asked questions, ever... 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply