Possible insta-kill Zombies

2

Please login or register to vote for this query.

(click on this box to dismiss)

This query shows all zombies that are easy to kill, aka questions that have at least one 0-scored answer.

Code Review

Q&A for peer programmer code reviews

SELECT 
  q.Id as [Post Link],
  MAX(a.Score) as [Best answer score]
FROM 
  Posts q
JOIN 
  Posts a ON a.ParentId = q.Id
WHERE 
      q.PostTypeId = 1  
  AND q.AnswerCount > 0
  AND q.AcceptedAnswerId IS NULL
  AND a.PostTypeId = 2
GROUP BY 
  q.Id
HAVING 
 MAX(a.Score) = 0

Enter Parameters

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