Posts with the most comments

1

Please login or register to vote for this query.

(click on this box to dismiss)

Role-playing Games

Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games

select top 50 coalesce(posts.parentid, posts.id) as [Post Link], count(comments.id) as commentcount
from comments join posts on (posts.id = comments.postid) join posts as parent on (posts.parentid = parent.id)
where posts.closedDate is null and parent.closedDate is null
group by coalesce(posts.parentid, posts.id)
order by Commentcount desc

Enter Parameters

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