MySQL Forums
Forum List  »  InnoDB

Re: Problems with COUNT (*) in a query
Posted by: Kostas Pyliouras
Date: March 14, 2005 11:18PM

HAVING is your friend ;)

SELECT c.a, c.b., c.c, COUNT(*) AS d From c GROUP BY c.a HAVING d>1

Kostas Pyliouras

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Problems with COUNT (*) in a query
2116
March 14, 2005 11:18PM


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.