Suppose I have a MySQL table named Domain. How can I find the most popular email domain from this table. Directly I want to find all rows with the maximum count.
Domain
gmail.com
gmail.com
gmail.com
yahoo.com
yahoo.com
yahoo.com
rediffmail.com
rediffmail.com
mail.com
My desired output:
Domain No_of_users
gmail.com 3
yahoo.com 3
1 Answer