Logarithmic user reputation distribution


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

declare @userCount bigint;
select @userCount = count(1)
from Users;

select POWER(10, FLOOR(LOG(u.Reputation, 10))) as RepGroup,
       count(1) as [Count],
       ROUND(count(1) * 100.0 / @userCount, 10) as [Percentage]
from Users u
group by POWER(10, FLOOR(LOG(u.Reputation, 10)))
order by RepGroup desc;

Enter Parameters

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