number of posts distributed over day of week and hour


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for programmers

select top 1 * 
select datename(dw,creationdate) as dayofweek
, datepART(hh,creationdate) as hour
, count(*) as numofposts
from posts
where id > 15000000 -- limit due to timeouts
and posttypeid = 1 -- only questions
-- and creationdate > '2013-10-01' -- last month rougly
group by   datename(dw, creationdate)
, datepart(hh, creationdate)
) as t
order by 3 desc

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results