SELECT COUNT(*) FROM ( SELECT Questions.Id AS [Post Link...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

-- Enter Query Title
-- Enter Query Description

SELECT COUNT(*)
    FROM
    (
        SELECT Questions.Id AS [Post Link], COUNT(Answers.Id) AS AnswerCount
            FROM Posts Questions
            INNER JOIN Posts Answers ON Questions.Id = Answers.ParentId
            WHERE
                Questions.PostTypeId = 1 AND
                Answers.PostTypeId = 2
            GROUP BY Questions.Id
            HAVING COUNT(Answers.Id) > 30
    ) AS AnswerCounts

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached