Post Count by Tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

-- Post Count by Tag
-- Enter Query Description

SELECT TOP 50 COUNT(*), T.TagName FROM POSTS P
INNER JOIN PostTags PT on (P.ID=PT.PostID)
INNER JOIN Tags T on (PT.TagID=T.ID)
GROUP BY T.TagName
ORDER BY Count(*) DESC

Enter Parameters

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