Votes broken down by month, year

1

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 name, "number of votes", year from (select 
  count(*) as "number of votes", votetypeid, 
  year(creationdate) as year 
from votes 
group by votetypeid, year(creationdate)) a
inner join votetypes
on a.votetypeid = id
order by votetypeid, year

Enter Parameters

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