While Andy's out to lunch, I'll answer for him.

He needs to get the names into one field. So from.....

id      Name
1       Andy
2       Steve
3       Ian
4       James

We need to get in to another table.........

AllNames
Andy, Steve, Ian, James


And in SQL if possible

Ade



-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: 15 August 2002 13:25
To: CF-Talk
Subject: RE: SQL Problem


select name+',  '+id as Name_Concat from MyTable

is this what u where looking for?

.tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 

-----Original Message-----
From: Andy Ewings [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 15, 2002 7:28 AM
To: CF-Talk
Subject: SQL Problem


For you SQL guys out there.  Do you know if there is an easy way to
combine
values from multiple rows?  e.g.  If I have a select from a table that
brings back 1 column of names say...
id      Name
1       Andy
2       Steve
3       Ian
4       James

Is there a way of combining these into a list without having to use
cursors?




______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to