This is what someone post yesterday :
Author: Richard Garman (213.123.155.193)
Date: 2001-07-17 11:39:49
Firstly, thanks to everyone for the help last time.
I now have another problem:
I have a table of scorers that will look something like this:
Poyet
Poyet
Ferdinand
Rebrov
Ferdinand
Rebrov
Carr
Poyet
Doherty
How would I create a list of top scorers to look like this:
Poyet 3
Rebrov 2
Ferdinand 2
Carr 1
Doherty 1
Thanks in advance.
Cheers,
Richard
and this is what i answer,
select scorers, count(scorers) col_name from table_name group by scorers order by col_name desc
hope that help!
jacinthe