MySQL Forums
Forum List  »  Newbie

Re: SELECT COUNT(DISTINCT()) FROM mytable ¿LIMIT 5?
Posted by: Peter Brawley
Date: October 23, 2016 11:21AM

> what I want is not counting the elements that are not repeated in the Name field,

You mean you do want counts of repeated names?

But 'robin' is repeated in the table yet the IDs of those rows (8, 9) are missing from your desired result.

Options: ReplyQuote




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.