Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Count
Message
 
To
14/10/2002 13:07:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Count
Miscellaneous
Thread ID:
00710995
Message ID:
00711009
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform