What is the most number of comments on a single post?

0

Please login or register to vote for this query.

(click on this box to dismiss)

Cognitive Sciences Meta

Q&A about the site for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

SELECT COUNT(c.Id) as TotalNoComments, p.Id as Posts_id
From Posts as p
Inner join Comments as c
on (p.Id=c.Id)
Group by p.Id
Order by TotalNoComments desc

Enter Parameters

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