Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL syntax question
Message
 
 
À
04/08/2003 18:25:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00816671
Message ID:
00816675
Vues:
23
>Hi. VFP7 user. How (in Fox sql) do I select ALL of the records in the parent table, whether (or not) they have a record in the child table?
>
>IOW: I want to report all of my customers and list their invoices (if they have any)
>
>Thanks, Randy

You would use LEFT OUTER JOIN
SELECT * FROM parenttable pt ;
  LEFT JOIN childtable ct ON ct.keyfield = pt.keyfield
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform