User Rank and Hoarded Rep

1

Please login or register to vote for this query.

(click on this box to dismiss)

Android Enthusiasts

Q&A for enthusiasts and power users of the Android operating system

Select 
  p.Id as [User Link], 
  p.Ranking, 
  substring(cast(Cast(Ranking as Decimal)/Count*100.00 as varchar), 1,6) + '%'
From
  (Select 
    Id, 
    ROW_NUMBER() OVER(ORDER BY Reputation DESC) as Ranking
  From 
    Users) as p,
  (SELECT Count = COUNT(*)
  FROM Users
  ) as Counts

Where p.Id = ##UserId##

Enter Parameters

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