Q&A for professional and enthusiast programmers
--This query will produce a cumulative distribution of the current reputations
--of users that have earned Favorte/Stellar Question badges. Specifically, it
--takes a favorite count threshold and finds the reputation of the askers of
--all questions with that count (25 for Favorite and 100 for Stellar Question).
--This is presented as a graph of the number of users on that list with up to
--the reputation on the horizontal axis.
Users.Reputation AS Rep,
ROW_NUMBER() OVER(ORDER BY Users.Reputation) AS NumberOfUsers
INNER JOIN Users