Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
More SQL fun ...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00057875
Message ID:
00058050
Vues:
37
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform