Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select question
Message
 
 
À
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:
00794226
Vues:
34
Thank you, Godfrey. I thought I tried this syntax and I did use LEFT JOIN but not LEFT OUTER JOIN. Maybe this will make a difference.

>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.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform