Scratchpad2

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

DECLARE @UserId int = ##UserId##
-- Enter Query Title
-- Enter Query Description
--select * from VoteTypes;

select 
cast(DATEPART(HOUR,CreationDate) as varchar)+'-'+
cast(DATEPART(HOUR,CreationDate) + 1 as varchar)
, count(1)
         from Posts
where OwnerUserId = @UserId
group by DATEPART(HOUR,CreationDate);

Enter Parameters

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