Skip to content
Advertisement

MYSQL How do I Select all emails from a table but limit number of emails with the same domain

As the topic sugests I want to select all emails in the list. But limit the number of emails with the same domain.

Lets say i have 500 gmail adressses.

And 2 example.com adresses.

.. and so on..

I want to just grab 2 of each adress with the same domain.

With this string i can select the number of domains that accurs on each domain so maybe I can do something with this string.

Please help!

Advertisement

Answer

and if you want them in one column

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement