Q&A for administrators and users of the CiviCRM Constituent Relationship Management software
select dateadd(year, datediff(year, 0, q.CreationDate), 0) m, TagName, count(*) from PostTags pt join Posts q on q.Id=pt.PostId join Tags t on t.Id=pt.TagId where TagName in ('activemq-classic', 'activemq-artemis') and q.CreationDate < dateadd(year, datediff(year, 0, getdate()), 0) group by dateadd(year, datediff(year, 0, q.CreationDate), 0), TagName order by dateadd(year, datediff(year, 0, q.CreationDate), 0)