Single Post - Most Comments

0

Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS

Q&A for administrators, end users, developers and designers for Craft CMS

--How many posts have the exact same number of answers?

SELECT posts.answercount,count(posts.id)--,b.answercount,b.count(id)
FROM posts-- a Inner JOIN posts b where a.answercount = b.answercount
GROUP BY answercount--,b.answercount
ORDER BY posts.answercount DESC

Enter Parameters

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