Mysql
 sql >> Database >  >> RDS >> Mysql

Contare le occorrenze dei valori DISTINCT

SELECT name,COUNT(*) as count 
FROM tablename 
GROUP BY name 
ORDER BY count DESC;