Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT and count()
Message
De
17/12/1998 10:28:30
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SELECT and count()
Divers
Thread ID:
00168507
Message ID:
00168507
Vues:
72
I have this SELECT:
SELECT (t1.f1+t1.f2+t1.f3) AS cGroup, COUNT(t1.f1) AS n1, COUNT(t2.f1) AS n2 ;
FROM t1 LEFT JOIN t2 ON <....>=<...> WHERE ......
GROUP BY 1

The resulting cursor has same value for both n1 and n2 which is not right because t2 has less number of these records. Is it possible to have such SELECT working OK?
TIA Mark
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform