DECLARE @TagId int = ( SELECT t.Id FROM Tags t WHERE t.Ta...

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

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