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