Q&A about the site for science fiction and fantasy enthusiasts
-- How many questions per month for JVM languages? -- Mostly high-profile languages, including some wip With Counts as ( select Month = X.Month, Count = count(*) from ( select CAST( cast(DATEPART(YYYY, CreationDate) as varchar) + '-' + cast(DATEPART(MM, CreationDate) as varchar) + '-01' as date) Month, t.TagName from Posts p join PostTags pt on pt.PostId = p.Id join Tags t on t.Id = pt.TagId where t.TagName = 'java' ) as X group by Month ) select *, CAST(count(*) AS decimal(10, 5)) * 1000 / ( SELECT Count from Counts WHERE Counts.Month = X.Month ) AS Percentile from ( select CAST( cast(DATEPART(YYYY, CreationDate) as varchar) + '-' + cast(DATEPART(MM, CreationDate) as varchar) + '-01' as date) Month, t.TagName from Posts p join PostTags pt on pt.PostId = p.Id join Tags t on t.Id = pt.TagId where t.TagName in ( 'scala', 'groovy', 'clojure', 'oxygen', 'jruby', 'jython', 'rhino', 'mirah', 'joy', 'ceylon', 'kotlin', 'fan') and p.CreationDate > '2011-01-01' ) as X group by TagName, Month order by Month asc, count(*) desc