select case posthistorytypeid when 10 then 'closed' else ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

select case posthistorytypeid when 10 then 'closed' else 'reopened' end [action]
     , count(*) [# times] 
from posthistory 
where posthistorytypeid in (10,11)
group by posthistorytypeid

Enter Parameters

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