>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