Users with the highest posts to total rep ratio

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 50
   u.Id,
   u.DisplayName,
   u.Reputation,
   count(*) as [Total Number of Posts],
   count(*)/u.Reputation as Ratio
FROM Users u
join Posts p on p.OwnerUserId = u.Id
where p.postTypeId in (1,2)
group by u.Id,u.DisplayName,u.Reputation
ORDER BY Ratio DESC

Enter Parameters

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