Ratio of closed questions per month


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(*) from
  select CAST(
      cast(DATEPART(YYYY, CreationDate) as varchar) + '-' + cast(DATEPART(MM, CreationDate) as varchar) + '-01'
    as datetime) [Month],
    CAST(DATEPART(YYYY, ClosedDate) as varchar) [Closed]
  from Posts p
  where CreationDate >= ##startdate:string##
) as X
group by [Month], [Closed]
order by [Month] asc

Enter Parameters

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