Q&A for professional and enthusiast programmers
-- Average answer score/views by hour SELECT DatePart(hh,CreationDate) Hour, Round(Avg(Cast(Score as float)),2) AvgScore, Avg(ViewCount) AvgViews FROM Posts WHERE PostTypeId = 1 GROUP BY DatePart(hh,CreationDate)