By Answer Count and Year Average Score and Average Views

0

Please login or register to vote for this query.

(click on this box to dismiss)

Mathematics

Q&A for people studying math at any level and professionals in related fields

DECLARE @answercount int = ##AnswerCount##
select top 50000 Year(CreationDate) as [Year], count(*) as [Count], avg(convert(decimal(10,2), Score)) as [Average Score],avg(convert(decimal(10,2), AnswerCount)) as [Average Answer Count], avg(convert(BigInt, ViewCount)) as [Average Views]
from posts 
where PostTypeID = 1 and DeletionDate is null and AnswerCount = @answercount
group by Year(CreationDate)
order by Year(CreationDate)

Enter Parameters

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