My Activity by Local Hour

0

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?

Moderators

Q&A for community managers, administrators, and moderators

-- 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
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 sites:
loading Hold tight while we fetch your results