upvote and downvote count this year

0

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

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