Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count() in SQL??
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128117
Message ID:
00128141
Views:
19
Perry,

You can get what you want with one SELECT.

SELECT s_or_status, COUNT(*) FROM TableName GROUP BY s_or_status INTO CURSOR Result

Result will have one record for each Status value with the count of records that had that value.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform