Number of views per question, based on creation date/time

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT AVG(viewcount), dateadd(hour, datediff(hour, 0, creationdate), 0)
  
  
  FROM posts
  WHERE posttypeid = 1
    AND creationdate BETWEEN '2015-10-01' AND '2015-10-31'
  GROUP BY dateadd(hour, datediff(hour, 0, creationdate), 0)
  ORDER BY dateadd(hour, datediff(hour, 0, creationdate), 0)

Enter Parameters

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