Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Counting by codes in a table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00868238
Message ID:
00868244
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform