StackOverflow Overall Rank for User

0

Please login or register to vote for this query.

(click on this box to dismiss)

Korean Language

Q&A for linguists, teachers and students of the Korean language

WITH Rankings AS (
SELECT Id, Ranking = ROW_NUMBER() OVER(ORDER BY Reputation DESC)
FROM Users
)
,Counts AS (
SELECT Count = COUNT(*)
FROM Users
WHERE Reputation > 200
)
SELECT 
  Id, 
  Ranking,
  ROUND((CAST(Ranking AS decimal(20, 5)) / (SELECT Count FROM Counts)) * 100, 2) AS 'Rank Overall (%)'
FROM Rankings
WHERE Id = 5640737

Enter Parameters

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