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(yr as varchar(4))+'-'
    +cast(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 in ('%<r>%','<')
  group by month(CreationDate), year(CreationDate)
) as t
order by yr asc, mnth asc

Enter Parameters

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