Hello,

I have table like this:

id | product
------------
0 | switch
1 | switch
2 | hub
3 | hub
4 | hub 
5 | wire
6 | wire
7 | wire
8 | wire
9 | wire
.
.
I`m looking for query which give me result as array:
0 - > count of 'switch'
1 - > count of 'hub'
2 - > count of 'wire'

Haw to do it ??

Regards,  Paul










-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to