Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL statement to combine one-to-many
Message
 
 
To
07/11/2001 10:10:08
Bill Tetrault
Northern Trust Value Investors
West Palm Beach, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00578503
Message ID:
00578515
Views:
29
Simply join the two tables and in turn, make sure fields from the parent and child are in the select list

Select parent.field1, parent.field2, child.field1, child.field2, child.field3
From parent
Join child On (parent.pk = child.fk)

This would give you a starting point. Then you could post-process the result set and append the data into a fabricated cursor with a memo field.

It cannot be done with SQL alone.
Previous
Reply
Map
View

Click here to load this message in the networking platform