Percentage of users with 10,000 and 20,000 reputation or more

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

SELECT
(
((SELECT CAST(COUNT(*) AS decimal) FROM Users WHERE Reputation > 10000) /
(SELECT CAST(COUNT(*) AS decimal) FROM Users)) * 100
) As PercentageOver10k,
(
((SELECT CAST(COUNT(*) AS decimal) FROM Users WHERE Reputation > 20000) /
(SELECT CAST(COUNT(*) AS decimal) FROM Users)) * 100
) As PercentageOver20k

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached