Zero score answers to unanswered questions, by tag

2

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

Q&A for people studying math at any level and professionals in related fields

SELECT p.Id AS [Post ID], p.Id AS [Post Link], a.Id AS [Answer ID]
FROM Posts p INNER JOIN Posts a ON p.Id = a.ParentId
WHERE (
  p.Tags LIKE '%<##TagName##>%' AND
  p.AcceptedAnswerID IS NULL AND
  p.ClosedDate IS NULL AND
  p.Score >= 0 AND
  a.Score = 0 AND
  a.Score >= ALL (
    SELECT aa.Score FROM Posts aa WHERE (
      aa.ParentId = p.Id
    )
  )
)
ORDER BY a.Id ASC

Enter Parameters

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