Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select question
Message
 
 
To
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:
00794226
Views:
32
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform