Questions per month, Scala Web Frameworks

0

Please login or register to vote for this query.

(click on this box to dismiss)

How many questions per month does each tag in the top 10 tags get

Ask Ubuntu

Q&A for Ubuntu users and developers

-- How many questions per month for Scala web frameworks?
-- Scala is provided as a reference.
-- playframework-1.x and playframework-2.x don't show up,
-- but there are questions tagged with them. These tags
-- don't show up here, though.

-- Filtering out posts not tagged with "scala" is ugly done,
-- and maybe overly restrictive, but playframework results looks
-- skewed otherwise

select *, count(*) from
(
  select CAST(
      cast(DATEPART(YYYY, CreationDate) as varchar) + '-' + 
      cast(DATEPART(MM, CreationDate) as varchar) + '-01'
    as date) Month, 
    t.TagName
  from (
    select p.Id, p.CreationDate from Posts p
    join PostTags pt on pt.PostId = p.Id
    join Tags t on t.Id = pt.TagId
    where t.TagName = 'scala'
    ) pp
  join PostTags pt on pt.PostId = pp.Id
  join Tags t on t.Id = pt.TagId
  where t.TagName in ( 
  'playframework', 'playframework-1.x',
  'playframework-2.0', 'playframework-2.x', 
  'lift', 'liftweb',
  'scalatra', 'vaadin', 'finagle', 'scalate',
  'pinky', 'xitrum', 'blueeyes', 'circumflex', 'bowler',
  'scala' )
) as X
where month between cast('2010-01-01' as date) and cast('2012-12-31' as date)
group by TagName, Month
order by Month asc, count(*) desc

Enter Parameters

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