Q&A for spacecraft operators, scientists, engineers, and enthusiasts
SELECT TOP 50 [year], Tag, COUNT(*) QuestionCount FROM ( SELECT YEAR(CreationDate) [year], p.Id, t.Tag FROM Posts p OUTER APPLY ( SELECT REPLACE(REPLACE(value, '<', ''), '>', '') Tag FROM STRING_SPLIT(p.Tags, '>') WHERE LEN(value) > 0) t WHERE PostTypeId = 1 ) raw -- questions WHERE [year] IN (##Year:int##) GROUP BY [year], Tag ORDER BY COUNT(*) DESC