Least average upvotes for answers

1

Please login or register to vote for this query.

(click on this box to dismiss)

Quantum Computing

Q&A for engineers, scientists, programmers, and computing professionals interested in quantum computing

SELECT TOP ##TopN:int?100##
  Posts.OwnerUserId AS [User Link],
  COUNT(DISTINCT Posts.Id) AS AnswerCount,
  COUNT(Votes.Id) AS VoteCount,
  1.0 * COUNT(Votes.Id) / COUNT(DISTINCT Posts.Id) AS AvgUpPerA
FROM Posts
LEFT JOIN Votes
  ON Votes.PostId = Posts.Id AND Votes.VoteTypeId = 2
WHERE
  Posts.PostTypeId = 2
  AND
  Posts.OwnerUserId > 0
GROUP BY Posts.OwnerUserId
HAVING COUNT(DISTINCT Posts.Id) > ##MinAnswerCount:int?10##
ORDER BY AvgUpPerA, Posts.OwnerUserId

Enter Parameters

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