Cumulative Up and Down votes of all users above certain rep

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

DECLARE @MinRep int = ##MinRep##

SELECT
    SUM(UpVotes) AS SumUp,
    SUM(DownVotes) AS SumDown,
    100.0*SUM(DownVotes)/(SUM(UpVotes)+SUM(DownVotes)) AS DownPercent,
    COUNT(*) AS CountUsers
FROM Users
WHERE Reputation >= @MinRep

Enter Parameters

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