hourly posts all

0

Please login or register to vote for this query.

(click on this box to dismiss)

Engineering Meta

Q&A about the site for professionals and students of engineering

SELECT
  DATEADD(hour, DATEDIFF(hour, 0, CreationDate), 0) AS Hour,
  COUNT(*) AS NumberOfPosts
FROM
  Posts
WHERE
  CreationDate > DATEADD(week, -70, GETDATE())  AND PostTypeId = 1 -- This filters out posts older than 4 weeks
GROUP BY
  DATEADD(hour, DATEDIFF(hour, 0, CreationDate), 0)
ORDER BY
  Hour;

Enter Parameters

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