Get all tags with their counts and descriptions

0

Please login or register to vote for this query.

(click on this box to dismiss)

Lifehacks

Q&A for people looking to bypass life's everyday problems with simple tricks

SELECT t.TagName, COUNT(pt.PostId), YEAR(p.CreationDate) FROM Posts as p
LEFT JOIN PostTags as pt ON p.Id = pt.PostId
LEFT JOIN Tags AS t ON pt.TagId = t.Id
WHERE t.TagName = 'javascript' OR t.TagName = 'typescript'
GROUP BY YEAR(p.CreationDate), t.TagName
ORDER BY YEAR(p.CreationDate) DESC

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results