Which of my answers received more votes than the accepted answer?

1

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

Q&A for scientists using computers to solve scientific problems

WITH Utable AS
(
SELECT
Id AS AnswerId,
ParentId AS QuestionId,
Score
FROM Posts  
WHERE
  OwnerUserId = 7128934  
  AND Posts.PostTypeId = 2
  AND Posts.ParentId IN
    (SELECT Id FROM Posts WHERE Posts.AcceptedAnswerId IS NOT NULL)
)
SELECT
Posts.Id as [Post Link]
FROM Posts
  LEFT JOIN Utable ON Utable.QuestionId = Posts.ParentId
WHERE Utable.AnswerId <> Posts.AcceptedAnswerId
AND Utable.score > Posts.Score

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results