Top users who accepted my answer

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @UserID Int = ##UserID?9449426##

SELECT
  a.Id AS [Post Link],
  asker.Reputation [Asker Reputation],
  asker.DisplayName [Asker]
FROM Posts a
LEFT JOIN Posts q ON a.ParentId = q.Id
LEFT JOIN Users asker ON q.OwnerUserId = asker.Id
WHERE a.OwnerUserId = @UserID
  AND a.PostTypeId = 2
  AND q.PostTypeId = 1
  AND q.AcceptedAnswerId = a.Id
ORDER BY asker.Reputation DESC

Enter Parameters

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