Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL syntax question
Message
 
 
To
04/08/2003 18:25:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00816671
Message ID:
00816675
Views:
22
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform