MySQL Forums
Forum List  »  Newbie

Re: How to get MAX of COUNT!?
Posted by: Marvin Eads
Date: April 13, 2005 02:05PM

SELECT book_category.category_number, count(book_category.category_number) AS bookcount
FROM category, book_category
WHERE category.category_number = book_category.category_number
GROUP BY book_category.category_number
ORDER BY bookcount DESC
LIMIT 1

Options: ReplyQuote


Subject
Written By
Posted
April 13, 2005 12:31PM
Re: How to get MAX of COUNT!?
April 13, 2005 02:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.