I\'d like to get a better idea of what domains my customers are using. I could easily do this in PHP by explodeing each address and counting the domain that way
explode
Adding ORDER BY to WoLpH's answer makes the output more clear:
SELECT substring_index(email, '@', -1), COUNT(*) AS MyCount FROM `database`.`table` GROUP BY substring_index(email, '@', -1) ORDER BY MyCount DESC;