МИСКЛ Количество случаев в столбце
SELECT name,COUNT(*)
FROM tablename
GROUP BY name
ORDER BY COUNT(*) DESC;
Troubled Tern
SELECT name,COUNT(*)
FROM tablename
GROUP BY name
ORDER BY COUNT(*) DESC;