my table is:
name | category |
name01 category01
name02 category01
name03 category02
name04 category02
name05 category02
name06 category02
name07 category02
.....
I would like to count for each category the number of name
the output i woulk like is something like this (by the example above):
category | num
category01 2
category02 5
...
thanks to all that would to help me...