Tags ordered by total number of questions

1

Please login or register to vote for this query.

(click on this box to dismiss)

Physics

Q&A for active researchers, academics and students of physics

-- Tags ordered by total number of questions

SELECT DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS SN,
       COUNT(*) AS Num,
       Tags.TagName
FROM Posts
INNER JOIN PostTags ON PostTags.PostId = Posts.Id
INNER JOIN Tags ON Tags.Id = PostTags.TagId
WHERE Posts.PostTypeId = 1
GROUP BY Tags.TagName
HAVING COUNT(*) > 100
ORDER BY Num DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results