Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

SQL Selecione os valores mais comuns


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