Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More SQL fun ...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00057875
Message ID:
00058050
Views:
32
Marc,

I misunderstood your question. The grandparent thing threw me.

If there was a one to one relationship between HAWB and Shipments, then the query that you outlined works. However, since there isn't, I think that the following gets what you need:

select Hawb, sum(Value), sum(Charge);
from shipment,charges;
where charges.shipment = shipment.shipment;
order by hawb, shipment.shipment;
group by hawb, shipment.shipment

BTW, You're the first one to even remotely reference my signature line.

hth,

George
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform