Average question score/views by hour

0

Please login or register to vote for this query.

(click on this box to dismiss)

Computational Science

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)

Enter Parameters

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