Votes on questions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Audio-Video Production Meta

Q&A about the site for engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation

SELECT
    YEAR(v.CreationDate) AS [Year]
  , COUNT(CASE WHEN v.VoteTypeId = 2 THEN 1 END) AS [Upvotes]
  , COUNT(CASE WHEN v.VoteTypeId = 3 THEN 1 END) AS [Downvotes]
FROM
  Votes v
INNER JOIN Posts p
ON v.PostId = p.Id
WHERE p.ClosedDate is null -- not closed
GROUP BY
  YEAR(v.CreationDate)
ORDER BY
  Year

Enter Parameters

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