Q&A for Salesforce administrators, implementation experts, developers and anybody in-between
SELECT TOP 10 Tags.Id [Tag Link], COUNT (*) FROM Tags JOIN PostTags ON TagId = Tags.Id JOIN Posts ON PostId = Posts.Id WHERE Posts.CreationDate BETWEEN '2012-12-01' AND '2013-01-01' AND PostTypeId = 1 GROUP BY Tags.Id ORDER BY COUNT (*) DESC