Votes By Year

1

Please login or register to vote for this query.

(click on this box to dismiss)

The Workplace Meta

Q&A about the site for members of the workforce navigating the professional setting

SELECT year(CreationDate) as year, 
  count(iif(VoteTypeId = 2, Id, null)) as Up, 
  count(iif(VoteTypeId = 3, Id, null)) as Down,
  count(iif(VoteTypeId = 1, Id, null)) as Accept
FROM Votes 
WHERE year(CreationDate) >= 2010 AND year(CreationDate) < year(GETDATE())
GROUP BY year(CreationDate) ORDER BY year

Enter Parameters

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