How popular is tag X?

0

Please login or register to vote for this query.

(click on this box to dismiss)

List the number of questions using tag X.

Islam Meta

Q&A about the site for Muslims, experts in Islam, and those interested in learning more about Islam

-- How popular is tag X?
-- List the number of questions using tag X.

DECLARE @Name AS varchar = ##TagName##

SELECT
    Tags.TagName AS Name,
    count(*) AS Total
FROM
    Tags JOIN PostTags ON PostTags.TagId = Tags.Id
WHERE
    Tags.TagName = @Name
GROUP BY
    Tags.TagName
ORDER BY
    Total
DESC

Enter Parameters

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