users votes per day ratio

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT TOP 200
     id [User Link]
     , (1+datediff(dd, creationdate, GETDATE())) "Days"
     ,(upvotes+downvotes) "Votes"
     , round(
         cast(nullif((upvotes+downvotes), 0) as float) / 
         (1+datediff(dd, creationdate, GETDATE())), 
         4
         )  "Votes/Day Ratio"
FROM users
ORDER BY "Votes/Day Ratio" DESC

Enter Parameters

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