Total Questions and Answers per Month for the last 12

0

Please login or register to vote for this query.

(click on this box to dismiss)

Total number of questions and answers for the last 12 months (in 30 day chunks)

Home Improvement

Q&A for contractors and serious DIYers

select *, count(*) from
(
  select CAST(
      cast(DATEPART(YYYY, CreationDate) as varchar) + '-' + cast(DATEPART(MM, CreationDate) as varchar) + '-01'
    as datetime) [Month], 
    t.TagName
  from Posts p 
  join PostTags pt on pt.PostId = p.Id
  join Tags t on t.Id = pt.TagId
  where TagId in 
  (
    select top 10 Id from Tags 
    where TagName in ('marmalade','collision-detection','physics','animation','multiplayer','game-engine',
                'game-physics','pygame','game-maker','gameplay-kit','unity2d','unity3d','textures',
                'path-finding','tilemap','libgdx','animation','game-loop','glsl','rotation',
                'unreal-engine4','corona','game','gamekit','gamepad','game-ai','2d-games',
                'game-center','xbox','xbox360','xbox-one','wii','unity5','cocos2d-iphone','cocos2d-x',
                'cocos2d-html5','unityscript','gaming','cryengine','unreal-engine4')  
    order by Count desc
  )
) as X
group by TagName, [Month]
order by [Month] asc, TagName asc

Enter Parameters

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