Q&A about the site for practitioners of the art and science of signal, image and video processing
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 ('julia') ) as tmptable where month between cast('2011-1-01' as date) and cast('2020-11-23' as date) group by TagName, Month order by Month desc, count(*) desc