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
How about something like
SELECT COUNT(DISTINCT [what you want]) FROM MyTable
COUNT(DISTINCT expr,[expr...])