Q&A for gamemasters and players of tabletop, paper-and-pencil role-playing games
---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?500##) u.Id AS [User Link], ROUND((u.Reputation)/(CAST(COUNT(p.Id) AS decimal)),2) AS [Ratio], u.Reputation, COUNT(p.Id) AS [Count] FROM Users u JOIN Posts p ON p.OwnerUserId=u.Id WHERE p.PostTypeId IN (1,2) 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