Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Counting by codes in a table
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00868238
Message ID:
00868244
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
>I need to count the number of orders by customer in a table. I'm sure that it can be done using SQL, but I can't quite figure it out.
>
>The table has multiple orders for multiple customers.
>
>Can someone give me a starting point for this situation?
>
>Thanks,
>
>Harry

SELECT custnum, COUNT(*) FROM orders GROUP BY custnum
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform