Tag synonyms having a non-existent target - with question counts

1

Please login or register to vote for this query.

(click on this box to dismiss)

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

SELECT 
ts.SourceTagName AS [TagName],
ts.TargetTagName AS [TagName],
t2.Count,
* 
FROM TagSynonyms ts LEFT OUTER JOIN Tags t ON t.TagName=ts.TargetTagName
INNER JOIN Tags t2 ON t2.TagName=ts.SourceTagName
WHERE t.Id IS NULL

Enter Parameters

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