liczba liczby mysql liczba wystąpień w kolumnie
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;