Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
select foo
, count(*)
from yourtable
group by foo
having count(*)
in ( select top 10 distinct count(*)
from yourtable
group by foo
order by count(*) desc ) as dt
order by count(*) desc
appears to me to mean the TOP 10 rows with the largest/biggest values in the COUNT(*) column using the ORDER BY COUNT(*) DESC.filter the rows returned to those that have the top 10 biggeste values in the count column
SELECT TOP 10
Blah
FROM
Blah
ORDER BY
[Count] DESC