select top(100) count(id) as numComments, userid from com...

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 top(100) count(id) as numComments, userid
from comments
where userid > 0
group by userid
order by count(id) desc

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results