php - Count the rows of the 'author' which is listed in the database at most -


i want following thing:

in mysql table have column called 'author'. rows of column contain names of authors. find out name listed @ in column , count how many times.

i afraid can't provide codes, since don't know how build query yet.

select author, count(*) countauthors books group author order countauthors desc limit 1 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -