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 count(posts.id), posts.answercount from posts
where posts.answercount in (
    select posts.answercount from posts
    where posts.answercount = posts.answercount
group by posts.answercount
)--order by posts.answercount A desc
group by posts.answercount

Enter Parameters

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