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)

Stack Overflow Meta en español

Preguntas y respuestas sobre el sitio para programadores y profesionales de la informática

select top 50000 AnswerCount, 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], round(avg(cast(CommentCount as decimal(10,2))),2) as [Average Comments]
from posts 
where PostTypeID = 1 and DeletionDate is null 
group by AnswerCount, Year(CreationDate)
order by Year(CreationDate), AnswerCount

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results