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

SQL Seleziona i valori più comuni

Questo farà:

select age from persons
group by age
having count(*) = (
  select count(*) from persons
  group by age
  order by count(*) desc
  limit 1)