Q&A for experienced flyers, pilots, and builders of drones and model aircraft
SELECT FORMAT(p.CreationDate, 'yy-MM') as [Month], SUM(CASE WHEN t.TagName = 'go' THEN 1 ELSE 0 END) as GoQuestions, SUM(CASE WHEN t.TagName = 'sql' THEN 1 ELSE 0 END) as SQLQuestions, SUM(CASE WHEN t.TagName = 'kotlin' THEN 1 ELSE 0 END) as KotlinQuestions, SUM(CASE WHEN t.TagName = 'scala' THEN 1 ELSE 0 END) as ScalaQuestions FROM Posts p INNER JOIN PostTags pt ON pt.PostId = p.Id INNER JOIN Tags t ON t.Id = pt.TagId WHERE p.PostTypeId = 1 -- 1=Question AND t.TagName IN ('go', 'sql', 'kotlin', 'scala') GROUP BY FORMAT(p.CreationDate, 'yy-MM') ORDER BY [Month];