Calculates the average liklihood that a given vote is a down vote.
Q&A about the site for members of the workforce navigating the professional setting
-- Vote Percentages -- Calculates the average liklihood that a given vote is a down vote. SELECT CONVERT(decimal, upvotes.cnt)/CONVERT(decimal, downvotes.cnt) FROM (SELECT count(*) AS cnt FROM Votes WHERE Votes.VoteTypeId = 2) AS upvotes, (SELECT count(*) AS cnt FROM Votes WHERE Votes.VoteTypeId = 3) AS downvotes