MySQL Forums
Forum List  »  Newbie

Re: SELECT COUNT(DISTINCT()) FROM mytable ¿LIMIT 5?
Posted by: Peter Brawley
Date: October 20, 2016 05:31PM

Now no question at all.

Count ( distinct name ) returns exactly what it says, the count of distinct names.

Your apparent desired result ...

6
5
4
3
2

expresses what rule(s) applied to this little table?

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.