Get all tags with their counts and descriptions

1

Please login or register to vote for this query.

(click on this box to dismiss)

Raspberry Pi

Q&A for users and developers of hardware and software for Raspberry Pi

Select DISTINCT
t.TagName,
STRING_AGG(ISNULL(ts.SourceTagName, ' '), ',') AS related

From Tags t 
Left Join Posts p On p.Id = t.ExcerptPostId
Left Join TagSynonyms ts ON t.TagName = ts.TargetTagName

Group By
t.TagName

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results