Last active
August 29, 2015 14:06
-
-
Save EstebanFuentealba/b75d19c21a4a37e19b47 to your computer and use it in GitHub Desktop.
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 SUBSTRING_INDEX(email,'@',-1) , count(*) as 'total' | |
FROM votantes | |
GROUP BY SUBSTRING_INDEX(email,'@',-1) | |
ORDER BY total DESC | |
SELECT count(*) as 'total', ip | |
FROM votantes | |
GROUP BY ip | |
ORDER BY total DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment