Don't touch my junk.

0

Please login or register to vote for this query.

(click on this box to dismiss)

English Language Learners

Q&A for speakers of other languages learning English

SELECT IsNull(Main.TagName, Alias.TagName) AS MainName
         , IsNull(Main.Id,      Alias.Id     ) AS MainId
         , Alias.TagName as AliasName
         , Alias.Id as AliasId
        FROM Tags as Alias
        LEFT JOIN TagSynonyms 
                ON SourceTagName=Alias.TagName
        LEFT JOIN Tags as Main
                ON TargetTagName=Main.TagName

Enter Parameters

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