StackOverFlow Rank and Percentile

0

Please login or register to vote for this query.

(click on this box to dismiss)

Monero Meta

Q&A about the site for developers and users of the secure, private and untraceable cryptocurrency Monero

-- Enter Query Title
-- Enter Query Description

WITH Rankings AS(
SELECT Id,Ranking = ROW_NUMBER() OVER(ORDER BY Reputation DESC)
FROM Users
)
,Counts AS (
SELECT TOP 1000 Count = COUNT(*)
FROM Users
WHERE Reputation > 100
)
SELECT Id, Ranking, CAST(Ranking AS decimal(20,5)) / (SELECT Count FROM Counts)
FROM Rankings;

Enter Parameters

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