Lists the 100 top users ranked by their average rep per answer
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