New Questions View Analysis by Tags

1

Please login or register to vote for this query.

(click on this box to dismiss)

Programming Puzzles and Code Golf

Q&A for programming puzzle enthusiasts and code golfers

select year(creationdate) as [year], 
  month(creationdate) AS [month],
  t.TagName,
  avg(AnswerCount) as AverageAnswerCount,
  sum(viewcount) / count(p.id) as AverageNewQuestionViews, 
  count(p.id) as NewQuestionCount, sum(viewcount) as NewQViewCount 
from posts p
join posttypes pt on p.posttypeid = pt.id
join PostTags ptg on ptg.PostId = p.Id
join Tags t on t.Id = ptg.TagId
where year(creationdate) >= 2011
  and pt.name = 'Question'
group by year(creationdate), month(creationdate),t.TagName having sum(viewcount) >=10000
order by year(creationdate), month(creationdate),t.TagName

Enter Parameters

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