Top users who accepted my answer


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##

  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

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