Questions with many comments but no accepted answer

2

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 100 q.Id, q.Title, 
  (SELECT COUNT(*) AS Comments FROM Comments qC WHERE q.Id = qC.PostId) AS CommentCount
FROM Posts q
WHERE q.AcceptedAnswerId IS NULL
   AND q.PostTypeId = 1
   AND CommentCount > 1
GROUP BY q.Id, q.Title
ORDER BY CommentCount DESC

Enter Parameters

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