Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select question
Message
From
29/05/2003 16:43:14
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00793758
Message ID:
00794199
Views:
39
Dmitry:

Try this

Select parts.number, parts.model, sum(parts_used.quantity_used) as used, ;
sum(parts_received.quantity_received) as received
from parts
left outer join parts_used on parts.number = parts_used.number ;
left outer join parts_received on parts.number = parts_received.number
group by 1
into cursor parts_cr


The left outer join will remove some of the clutter.
Godfrey Nicholson
Ofek Technologies Ltd
Auckland
New Zealand
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform