Q&A about the site for users of TeX, LaTeX, ConTeXt, and related typesetting systems
DECLARE @UserId int = ##UserId## SELECT DATEPART(hour, CreationDate) as hour, COUNT(*) as number FROM Posts WHERE OwnerUserId = @UserId GROUP BY DATEPART(hour, CreationDate)