select count(*), DATEDIFF(DAY, '04/21/2015', GETDATE()), ...

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 count(*), DATEDIFF(DAY, '04/21/2015', GETDATE()), DATEDIFF(DAY, '04/21/2015', GETDATE()) / count(*) from Posts where PostTypeId = 2 and OwnerUserId = 100297 and CreationDate > '04/21/2015'
union
select count(*), DATEDIFF(DAY, '03/27/2018', GETDATE()), DATEDIFF(DAY, '03/27/2018', GETDATE()) / count(*) 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