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 Meta

Q&A about the site for scientists using computers to solve scientific problems

WITH Utable AS
(
SELECT
Id AS AnswerId,
ParentId AS QuestionId,
Score AS Uscore
FROM Posts  
WHERE
  OwnerUserId = 7128934  
  AND Posts.PostTypeId = 2
  AND Posts.ParentId IN
    (SELECT Posts.Id FROM Posts WHERE Posts.AcceptedAnswerId IS NOT NULL)
)
SELECT
Posts.Id AS [Post Link],
Posts.Score AS OScore,
Utable.Uscore
FROM Posts
  RIGHT JOIN Utable ON Utable.QuestionId = Posts.Id
  WHERE Posts.ParentId IN
  (SELECT QuestionId FROM UTable)

Enter Parameters

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