Q&A for scientists using computers to solve scientific problems
SET DATEFIRST 1 SELECT DatePart(dw,CreationDate) WeekDay, DatePart(hh,CreationDate) Hour, Round(Avg(Cast(Score as float)),2) AvgScore, Avg(ViewCount) AvgViews, Count(*) FROM Posts WHERE PostTypeId = 1 GROUP BY DatePart(dw,CreationDate),DatePart(hh,CreationDate) ORDER BY DatePart(dw,CreationDate),DatePart(hh,CreationDate)