How many posts have the exact same number of answers?

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

SELECT COUNT(Id)
FROM Posts
WHERE AnswerCount IN (SELECT 
                                       AnswerCount
                                       FROM Posts
                      GROUP BY AnswerCount
                      HAVING COUNT(AnswerCount) >= 2);

Enter Parameters

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