Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why Two Different Return Counts
Message
 
 
To
11/09/2007 13:24:19
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01253728
Message ID:
01253733
Views:
17
>Why would to two following SQL statements return different record counts?
>
>sqla = "SELECT Count(*) As rCount FROM webprddt6.tsotagtbl Where archivef = '0' Group By cono"
>
>sql = "SELECT cono, archivef FROM webprddt6.tsotagtbl Where archivef = '0' Group By cono, archivef"
>
>The first returns 128
>
>The second 133
>

You re grouping on 2 fields in the second query and on 1 in the first.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform