Created
July 5, 2013 11:43
-
-
Save ivan1911/5934000 to your computer and use it in GitHub Desktop.
User Email Domains popularity MySQL
This file contains hidden or 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 SUBSTRING_INDEX(Email, '@', -1) as Domain, count(*) as Total | |
FROM Users | |
GROUP BY Domain | |
ORDER BY Total DESC | |
LIMIT 15; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment