Created
November 3, 2014 16:35
-
-
Save martijngastkemper/95500c82bdb007081fff to your computer and use it in GitHub Desktop.
A mysql query to group the domains in your list of e-mail addresses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
(substr( email, instr( email, '@') + 1)) as domain, | |
count(*) as total | |
FROM relations | |
GROUP BY domain | |
ORDER BY total DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment