What is my reputation's percentile?

16

Please login or register to vote for this query.

(click on this box to dismiss)

Computes what percentage of users have lower reputation than the given user ID. A minimum reputation can be specified to cut off one-time users and other such outliers. (use a large negative number to consider all users)

Internet of Things Meta

Q&A about the site for builders and users of networked sensors and control devices in the contexts of smart homes, industry automation, or environmental sensors

declare @TotalUsers float
select @TotalUsers = count(*) from Users where Reputation > ##MinReputation##

declare @MyReputation int
select @MyReputation = Reputation from Users where Id = ##UserId##

declare @CountBelow float
select @CountBelow = count(*) from Users where Reputation < @MyReputation and Reputation > ##MinReputation##

select (@CountBelow / @TotalUsers) * 100 as Percentile

Enter Parameters

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