In theory, you could use a select to create the memodetails column in your newtable. Something like:
select client,sum(invvalue) as invttl, desc, ordnum, (select memodetails from mytable where ...) as memodetails from mytable into table newtable group by client, ordnum But you don't have a filter in your main query so it's a little hard to tell what you would use as the column definition filter. -- rk -----Original Message----- From: profoxtech-boun...@leafe.com [mailto:profoxtech-boun...@leafe.com] On Behalf Of Sytze de Boer Sent: Sunday, January 22, 2012 9:43 PM To: profoxt...@leafe.com Subject: Vfp and sql I hope my question does not meet with too much derision ....... I can do the following and end up with desired result select client,sum(invvalue) as invttl, desc, ordnum, memodetails from mytable into table newtable group by client,ordnum It gives me the 1 record I want BUT I also need to combine the memodetails into this same single record Can this be done ? -- Regards Sytze de Boer _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/DF1EEF11E586A64FB54A97F22A8BD0441D4A7D57BA@ACKBWDDQH1.artfact.local ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.