select distinct download_count, count(*) as user_count f...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

--SELECT UserId, count(*) FROM Comments GROUP BY UserId ORDER BY UserId

select distinct download_count, count(*) as user_count 
from ( 
    select count(*) as download_count  
    from Comments
    group by UserId)  
as download_count 
group by download_count;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results