WITH Rankings AS ( SELECT DisplayName, Id, Ranking = ROW_...

0

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

WITH Rankings AS (
SELECT DisplayName, Id, Ranking = ROW_NUMBER() OVER(ORDER BY Reputation DESC)
FROM Users
)
,Counts AS (
SELECT Count = COUNT(*)
FROM Users
WHERE Reputation > 200
)
SELECT Id, Ranking, CAST(Ranking AS decimal(10, 5)) / (SELECT Count FROM Counts) AS Percentile
FROM Rankings
WHERE Id = 88932

Enter Parameters

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