Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select many to one
Message
From
18/07/2001 06:39:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Select many to one
Miscellaneous
Thread ID:
00531898
Message ID:
00531898
Views:
41
I recently created a report for an old application. In the app, the comments are stored as a series of six records with the table structure being a key field and then a 60 character field for the text. So for each comment there will be six records in the table. I wanted to select these into a memo field along with other fields from related tables for inclusion in a report.

I selected the matching records with a sql select by the key field and then used a scan loop to gather the six records into a cursor to combine the six lines into one memo field. This works fine but I am wondering why I couldn't do this with a select statment and not have to rely on the scan loop. For some reason, I am drawing a blank.

Any ideas?

Thanks,
Bill
Next
Reply
Map
View

Click here to load this message in the networking platform