Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combine the Same Field From Multiple Rows 1

Status
Not open for further replies.

dcsoke

Programmer
Nov 23, 2005
16
GB
So I have data that's in the following structure.
ID LINE COMMENT
1234 A Test Line A
1234 B Try Line B
1234 C On Line C

I need to combine it like so:
ID COMMENT
1234 Test Line A, Try Line B, On Line C

I tried a loop, different joins, etc. but the problem is there there could be x number of rows per ID so a standard join won't work. Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top