Normalized Reputation Frequency Distribution with parameters

0

Please login or register to vote for this query.

(click on this box to dismiss)

From http://data.stackexchange.com/stackoverflow/query/90233/reputation-frequency-distribution

Stack Overflow

Q&A for professional and enthusiast programmers

-- A frequency distribution of user reputation

SELECT FLOOR(reputation / ##step:int?1000## / DATEDIFF(day, CreationDate, LastAccessDate+1)) * ##step## AS [UserReputationPerDayActive],
       Count(id)         AS [UserCount]
FROM   users 
GROUP  BY FLOOR(reputation / ##step:int?1000## / DATEDIFF(day, CreationDate, LastAccessDate+1)) * ##step##
ORDER  BY [UserReputationPerDayActive] ASC

Enter Parameters

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