Total Questions Tagged with a [Tag]

1

Please login or register to vote for this query.

(click on this box to dismiss)

Gets total quantity of questions tagged with [Tag1] and total quantity of questions tagged with both [Tag1] AND [tag2].

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @TagId int = (
SELECT
  t.Id
FROM Tags t
WHERE t.TagName = ##TagName:string##
)


SELECT
  CONCAT('Questions tagged [', ##TagName:string##, ']'),
  COUNT(TagId) AS [Usage Count]
FROM PostTags
WHERE TagId = @TagId


-- TagName: Exact Name of Tag#1:

Enter Parameters

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