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
 Transact-SQL (2000)
 HELP with query

Author  Topic 

ninel
Posting Yak Master

141 Posts

Posted - 2005-05-04 : 18:30:46
I have the following records:

Date EmployeeId Project
20050503 12345 VERIZON
20050503 12345 CINGULAR
20050503 12345 SPRINT
20050503 24680 CINGULAR

I need the resulting table to look like this:
Date EmployeeId Project
20050503 12345 VERIZON, CINGULAR, SPRINT
20050503 24680 CINGULAR

How do I separate the projects with a comma?

Thanks,
Ninel

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-05-04 : 19:03:38
http://www.sqlteam.com/item.asp?ItemID=11021

Tara
Go to Top of Page
   

- Advertisement -