Posts with over 20 comments

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 p.Id as [Post Link], count(c.Id)
from Posts p
     join Comments c on (PostId = p.Id)
group by p.Id
having count(c.Id) >= 20
order by min(c.CreationDate) desc;

Enter Parameters

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