Answers by Time of Day

0

Please login or register to vote for this query.

(click on this box to dismiss)

Designed to consider whether "night" questions have more visibility than "day" questions

Stack Overflow

Q&A for professional and enthusiast programmers

-- Answers by Time of Day
-- Designed to consider whether "night" questions have more visibility than "day" questions

select
datepart(hour, Posts.CreationDate) Hour,
count(Posts.Id) Questions
from Posts
where PostTypeid = 2 -- 2 = answer
group by datepart(hour, Posts.CreationDate)
-- order by datepart(hour, Posts.CreationDate)
order by count(posts.id) desc

Enter Parameters

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