Tags which no longer exists (ordered by number of questions)

1

Please login or register to vote for this query.

(click on this box to dismiss)

Reverse Engineering Meta

Q&A about the site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation

; with tagshistory_cte AS
(
SELECT
  Id AS phid,
  replace(value,'>','') TagName
FROM
  PostHistory
  CROSS APPLY STRING_SPLIT(Text,'<')
Where PostHistoryTypeId in (3,6,9)
and len(value) > 0
)

SELECT
  th.tagname,
  COUNT(DISTINCT ph.PostId) AS [Count]
FROM tagshistory_cte th INNER JOIN PostHistory ph ON ph.id=th.phid
WHERE NOT(th.tagname IN (SELECT TagName from Tags))
GROUP BY th.tagname
ORDER BY COUNT(DISTINCT ph.PostId) DESC

Enter Parameters

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