Estimated Year ranking for user in Reputation League


Please login or register to vote for this query.

(click on this box to dismiss)

Physics Meta

Q&A about the site for active researchers, academics and students of physics

select id, displayname
into #users
from users
where reputation > 10000

create index #ix_users on #users(id)

;with user_scores as (
     , sum(
       case  v.votetypeid 
         when 1 then 15
         when 2 then 10
         when 3 then -2
         when 9 then v.bountyamount
         else 0
     ) [est. rep]
from #users u
inner join posts p on p.owneruserid =
inner join votes v on v.postid = and votetypeid in (1,2,3,9)
where > ##cutoff?267232069##
group by

select rank() over(order by [est. rep] desc) [rank]
     , *
from user_scores
order by 2 desc

Enter Parameters

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