Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT and count()
Message
From
17/12/1998 10:28:30
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SELECT and count()
Miscellaneous
Thread ID:
00168507
Message ID:
00168507
Views:
80
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
Next
Reply
Map
View

Click here to load this message in the networking platform