Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count Function
Message
From
24/09/2002 10:30:00
 
 
To
24/09/2002 10:25:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00703773
Message ID:
00703776
Views:
14
SELECT MyField, COUNT (*) as Cnt FROM MyTable GROUP BY MyField
HTH

>Is there a way of counting for the number of distinct values in a field.
>I need to find out the number of different codes in a field and dont really want to do a SELECT DISTINCT into a different table and count the number of records. Anyone any ideas?
Previous
Reply
Map
View

Click here to load this message in the networking platform