select 'Martijn' as name, count(*), DATEDIFF(DAY, '04/21/...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select 'Martijn' as name, count(*), DATEDIFF(DAY, '04/21/2015', GETDATE()), DATEDIFF(DAY, '04/21/2015', GETDATE()) / cast(count(*) as DECIMAL) from Posts where PostTypeId = 2 and OwnerUserId = 100297 and CreationDate > '04/21/2015'
union
select 'Yvette' as name, count(*), DATEDIFF(DAY, '03/27/2018', GETDATE()), DATEDIFF(DAY, '03/27/2018', GETDATE()) / cast(count(*) as DECIMAL) from Posts where PostTypeId = 2 and OwnerUserId = 3956566 and CreationDate > '03/27/2018'

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results