Q&A about the site for expert genealogists and people interested in genealogy or family history
SELECT CAST(DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS DATE) AS [Month], t.TagName, COUNT(*) AS [Count] FROM Posts p JOIN PostTags pt ON pt.PostId = p.Id JOIN Tags t ON t.Id = pt.TagId WHERE t.TagName IN ('sms', 'messaging', 'whatsapp', 'viber', 'telegram', 'usa', 'india', 'california', 'new-york') GROUP BY t.TagName, CAST(DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS DATE) ORDER BY [Month] ASC, t.TagName ASC;