Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Summing by location
Message
De
26/07/1999 20:10:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00246115
Message ID:
00246386
Vues:
26
I'm a little bit confused here. It will help to have the structure of your tables.

>>Try:
>>
SELECT Inv.Location, Count(OnHand.PK);
>>   FROM Inv;
>>   LEFT OUTER JOIN OnHand ON Inv.PK = OnHand.FK;
>>   GROUP BY Inv.Location
HTH
>
>But now, if I search on a part in location 01 and it's there's no stock in location 01, in which case there wouldn't be an entry in the onhand table, how do I get it to select that part number and instead say that onhand=0?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform