Questions whose accepted answer has the same score as another answer

0

Please login or register to vote for this query.

(click on this box to dismiss)

Lifehacks

Q&A for people looking to bypass life's everyday problems with simple tricks

SELECT TOP(10)
  question.Id AS [Post Link]
FROM Posts answer
  JOIN Posts question ON question.Id = answer.ParentId
  JOIN Posts acceptedAnswer ON acceptedAnswer.Id = question.AcceptedAnswerId
WHERE question.AcceptedAnswerId IS NOT NULL
AND answer.PostTypeId = 2
AND answer.Id <> acceptedAnswer.Id
AND answer.Score = acceptedAnswer.Score
AND acceptedAnswer.OwnerUserId <> question.OwnerUserId

Enter Parameters

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