select DATEADD(wk, DATEDIFF(wk,0,creationdate), 0) , coun...

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 DATEADD(wk, DATEDIFF(wk,0,creationdate), 0)
     , count(*) 
from votes
where votetypeid = 8 -- bounty
group by DATEADD(wk, DATEDIFF(wk,0,creationdate), 0)
order by DATEADD(wk, DATEDIFF(wk,0,creationdate), 0)

Enter Parameters

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