Top users by average reputation per post (non CW)


Please login or register to vote for this query.

(click on this box to dismiss)

Physical Fitness Meta

Q&A about the site for physical fitness professionals, athletes, trainers, and those providing health-related needs

---the parameter min makes the query to look only at users having at least that many posts
---without any restrictions, you're quite likely to get users who posted only a single posts which got many upvotes
SELECT TOP(##num?100##)
  u.Id AS [User Link],
  ROUND((u.Reputation)/(CAST(COUNT(p.Id) AS decimal)),2) AS [Ratio], 
  COUNT(p.Id) AS [Count]
FROM Users u INNER JOIN Posts p ON p.OwnerUserId=u.Id
WHERE (p.PostTypeId IN (##types?1,2##)) 
---use 1 to get only questions, 2 to get only answers
  AND (CommunityOwnedDate IS NULL)
GROUP BY u.Id, u.Reputation
HAVING (COUNT(p.Id)>=##min?100##)
ORDER BY (ROUND((u.Reputation)/(CAST(COUNT(p.Id) AS decimal)),2)) DESC

Enter Parameters

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