Counting 'Copy Editors'

0

Please login or register to vote for this query.

(click on this box to dismiss)

Emacs

Q&A for those using, extending or developing Emacs

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 meta site
loading Hold tight while we fetch your results