questions with no answers but most comments

0

Please login or register to vote for this query.

(click on this box to dismiss)

Bicycles

Q&A for people who build and repair bicycles, people who train cycling, or commute on bicycles

WITH commentStats AS (
    SELECT      COUNT (Id) AS numC,
                MAX (Id) AS dId,
                MAX (CreationDate) AS dDate,
                PostId
    FROM        Comments
    GROUP BY    PostId
)
SELECT      cs.numC AS [Num Cmts],
            cs.dDate AS Latest,
            cs.PostId AS [Post Link],
            c.Text AS [Last Comment]
FROM        commentStats cs
INNER JOIN  Comments c
ON          c.Id = cs.dId 
INNER JOIN  Posts p 
ON          p.Id = cs.PostId
WHERE       p.AnswerCount = 0
AND         p.PostTypeId = 1
AND         cs.numC > 10

ORDER BY    cs.dDate DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results