Mysql
 sql >> Base de données >  >> RDS >> Mysql

Compter les occurrences de valeurs DISTINCT

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