JVM languages as percentage relative to Java

0

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy Meta

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)) * 100 / (
  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')
) as X
group by TagName, Month
order by Month asc, count(*) desc

Enter Parameters

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