Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JOIN vs WHERE
Message
De
17/06/2009 14:24:22
 
 
À
16/06/2009 16:39:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01406428
Message ID:
01406669
Vues:
64
>>Please Note: VFP 8
>>
>
>PS: Both queries should return wrong count but I don't know what you really want to count (couldn't visualize).
>
>Maybe this one:
>
SELECT  cust.customer, COUNT(fr.custshipm) ;
>   FROM crsAllCust cust;
>      LEFT JOIN crsFillRate fr ON cust.customer = fr.custshipm AND EMPTY(fr.PartOrders);
>   GROUP BY cust.customer
>
>Cetin

The original query actually had COUNT(fr.custshipm). I tested with COUNT(*) and got the same results. And that was the code I cut and pasted. I also tried it with COUNT(*) and COUNT(fr.custshipm) and both fields had the same values.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform