Tag Popularity Comparison

2

Please login or register to vote for this query.

(click on this box to dismiss)

Mi Yodeya

Q&A for those who base their lives on Jewish law and tradition and anyone interested in learning more

--Specify tags as a comma-delimited list of
--single-quoted strings: 'java', 'c#'
select *, 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 in (##Tags##)
) 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