My Activity by Local Hour

1

Please login or register to vote for this query.

(click on this box to dismiss)

What time of day do I post questions and answers most?

Music Fans Meta

Q&A about the site for music historians, critics, and fans

-- My Activity by Local Hour
-- What time of day do I post questions and answers most?
SELECT
 DATEPART(HOUR, DATEADD(HH,##TimeZoneDiff##, CreationDate)) AS Hour,
 COUNT(CASE WHEN PostTypeId = 1 THEN 1 END) AS Questions,
 COUNT(CASE WHEN PostTypeId = 2 THEN 1 END) AS Answers
FROM Posts
WHERE
  PostTypeId IN (1,2) AND
  OwnerUserId = ##UserId##
GROUP BY DATEPART(HOUR, DATEADD(HH,##TimeZoneDiff##, CreationDate))
ORDER BY Hour

Enter Parameters

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