R versus Python tags - quotient Py/R

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select
  cast(cast(t.yr as varchar(4))+'-'+cast(t.mnth as varchar(2))+'-01' as date) as dt
  ,mnth_count
from
(
  select
    month(CreationDate) as mnth
    ,year(CreationDate) as yr
    ,count(*) as mnth_count
  from
    posts
  where
    tags like '%<r>%'
    or tags like '%<python>%'
  group by month(CreationDate), year(CreationDate)
) as t
where not (mnth=8 and yr=2015)
order by t.yr asc, t.mnth asc

Enter Parameters

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