select PostTypeId, sum(case when datepart(quarter,a.Creat...

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 datepart(quarter,a.CreationDate) = 2 
and datepart(quarter,a.DeletionDate) = 2  then 1 else 0 end) as REJECT_CNT,
sum(case when datepart(quarter,a.CreationDate) = 2 then 1 else 0 end) as SUBMIT_CNT
from posts a
group by PostTypeId

Enter Parameters

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