Most answer-effective users

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 100
  Users.Id as [User Link],
  COUNT(1) as [Answer Count],
  Users.Reputation,
  AVG(Posts.Score) as [Avg Score per Answer]
FROM
  Users
INNER JOIN
  Posts
    ON Users.Id = Posts.OwnerUserId
    AND Posts.PostTypeId = 2
GROUP BY
  Users.Id,
  Users.Reputation
ORDER BY
  [Avg Score per Answer] DESC

Enter Parameters

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