JVM languages as percentage relative to Java

0

Please login or register to vote for this query.

(click on this box to dismiss)

Bitcoin

Q&A for Bitcoin crypto-currency 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')
) as X
group by TagName, Month
order by Month asc, count(*) desc

Enter Parameters

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