List of top users ranked by highest "Average Rep earned per Answer"

0

Please login or register to vote for this query.

(click on this box to dismiss)

Lists the 100 top users ranked by their average rep per answer

Webmasters

Q&A for pro webmasters

set nocount on

declare @minRep numeric = 1000

declare @UserStats table (OwnerUserId int, answerCnt int)
insert @UserStats
select
    u.Id,
    answerCnt = count ( p.Id )
from
    Posts p join Users u on u.Id = p.OwnerUserid
where
    u.Reputation > @minRep
group by
    u.Id

set nocount on

select 
   top 100 answerCnt as [answer cnt],
   u.DisplayName as [Display name],
   u.Reputation as [Reputation],
   u.Reputation / answerCnt as [Avg Rep per answer]
from 
   @UserStats s, 
   Users u
where u.Id = s.OwnerUserId
order by [Avg Rep per answer] desc

Enter Parameters

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