select eomonth(creationdate) Month , count(*) , sum(case ...

1

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 eomonth(creationdate) Month
     , count(*)
     , sum(case when deletiondate is null then 1 else 0 end) [visible]
     , sum(case when deletiondate is not null then 1 else 0 end) [deleted]
from postswithdeleted
where tags like '%<python>%'
group by eomonth(creationdate)
order by 1

Enter Parameters

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