Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL statement to combine one-to-many
Message
 
À
07/11/2001 10:10:08
Bill Tetrault
Northern Trust Value Investors
West Palm Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00578503
Message ID:
00578515
Vues:
30
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform