Questions and Answers per Month


Please login or register to vote for this query.

(click on this box to dismiss)

Statistical Analysis

Q&A for people interested in statistics, machine learning, data analysis, data mining, and data visualization

select [Month], 
cast(cast(sum(case when AnswerCount > 0 then 1 else 0 end) as float)/
cast(sum(case when 1 > 0 then 1 else 0 end) as float) as Decimal(6,3)) ratio
  select CAST(
      cast(DATEPART(YYYY, CreationDate) as varchar) + '-' + cast(DATEPART(MM, CreationDate) as varchar) + '-01'
    as datetime) [Month], 
  from Posts p
  where ClosedDate is NULL
  and PostTypeId = 1
) as X
group by [Month]
order by [Month] asc

Enter Parameters

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