Q&A about the site for Ubuntu users and developers
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') GROUP BY t.TagName, CAST(DATEFROMPARTS(YEAR(p.CreationDate), MONTH(p.CreationDate), 1) AS DATE) ORDER BY [Month] ASC, t.TagName ASC;