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
cast(DATEPART(YYYY, CreationDate) as varchar) + '-' +
cast(DATEPART(MM, CreationDate) as varchar) + '-01'
as date) Month,
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