select PostTypeId, sum(case when year(a.CreationDate) = 2...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Space Exploration

Q&A for spacecraft operators, scientists, engineers, and enthusiasts

select PostTypeId, 
sum(case when year(a.CreationDate) = 2020 and datepart(quarter,a.CreationDate) = 4 and year(a.DeletionDate) = 2020 and datepart(quarter,a.DeletionDate) = 4  then 1 else 0 end) as REJECT_CNT 

from posts a
group by PostTypeId

Enter Parameters

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