Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Distinct and Aggregate Functions
Message
From
18/10/2000 17:31:21
 
 
To
18/10/2000 16:46:22
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00431161
Message ID:
00431195
Views:
14
My Understanding of Distinct is that it forces each record being included in the result set to compare itself to the rest of the records in the result set and only add itself if there are no other matches existng. With the sql example you showed, I would think you'd have to write two SQL statements. The first would give you your distinct list and then your second would give you the sum and counts when you pull it from your first result set.

Dave
David Denning
ded@kirtlandsys.com
Previous
Reply
Map
View

Click here to load this message in the networking platform