up to down ratio

0

Please login or register to vote for this query.

(click on this box to dismiss)

TeX Meta

Q&A about the site for users of TeX, LaTeX, ConTeXt, and related typesetting systems

SELECT 
    YEAR(CreationDate) AS Year,
    CAST(SUM(CASE WHEN VoteTypeId = 2 THEN 1 ELSE 0 END) AS FLOAT) / 
    CAST(SUM(CASE WHEN VoteTypeId = 3 THEN 1 ELSE 0 END) AS FLOAT) AS UpvoteDownvoteRatio
FROM 
    Votes
WHERE 
    YEAR(CreationDate) BETWEEN 2009 AND 2023
GROUP BY
    YEAR(CreationDate)
ORDER BY
    YEAR(CreationDate);

Enter Parameters

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