Anton.Sandbox

1

Please login or register to vote for this query.

(click on this box to dismiss)

Code Golf and Coding Challenges Meta

Q&A about the site for programming puzzle enthusiasts and code golfers

DECLARE @UserId int = ##UserId##

SELECT DATEPART(hour, CreationDate) as hour, COUNT(*) as number
FROM Posts
WHERE OwnerUserId = @UserId
GROUP BY DATEPART(hour, CreationDate)

Enter Parameters

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