Vote activity by day-of-week

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

with Dates as (
select cast(DatePart(year, CreationDate) as float) 
     + cast(DatePart(dw, CreationDate) as float)/10 as YearDay
from Votes
)
select YearDay,
       Count(*) as Count
from Dates
group by YearDay
order by YearDay

Enter Parameters

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