Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Count
Message
 
À
14/10/2002 13:07:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: Count
Divers
Thread ID:
00710995
Message ID:
00711009
Vues:
15
>hi all
>I have a table with 3 columns one is customer name and the other itemid and item color and I want to know for each customer how many items he has and which color how can I make it in a sql command
>
>
>thanx

Try these statements, depending on the level of grouping you wish:
Select Name,Color,count(*) as Count from MyTable group by name,Color

Select Name,count(*) as Count from MyTable group by name
Regards
Jose
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform