Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

SELECIONE MAX de COUNT

select top 1 app_rate_unit, count(*) from dbo.well
group by app_rate_unit
order by count(*) desc