upvote and downvote count this year


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select count(*) as votes, vt.name
from votes v, votetypes vt
where v.votetypeid in (2, 3)
and datepart(year, v.creationdate) >= 2016
and v.votetypeid = vt.id
group by vt.name

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results