Q&A for professional and enthusiast programmers
-- My Activity by UTC Hour -- What time of day do I post comments most? SELECT datepart(hour,c.creationdate) AS hour, count(*) AS comment_count FROM comments c WHERE c.UserId=##UserID## GROUP BY datepart(hour,c.creationdate) ORDER BY hour