Users with the best Up/Down Vote ratio

0

Please login or register to vote for this query.

(click on this box to dismiss)

Christianity

Q&A for committed Christians, experts in Christianity and those interested in learning more

DECLARE @MinRep int = ##MinRep##
DECLARE @MinDownVotes int = ##MinDownVotes##
DECLARE @UserId int = ##UserId##

SELECT
    Id as [User Link],
    Id,
    UpVotes,
    DownVotes,
    Reputation,
    ROUND(1000*CAST(DownVotes AS float) / CAST(Reputation AS float), 3) AS DownToRepPermil
FROM Users
WHERE Id=@UserId
OR (Reputation >= @MinRep
AND DownVotes >= @MinDownVotes)
ORDER BY DownToRepPermil ASC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results