Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select question
Message
De
29/05/2003 16:43:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00793758
Message ID:
00794199
Vues:
30
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform