select top 50000, t."count" as tagCount, string_agg(...


Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select top 50000,
t."count" as tagCount,
  string_agg(TagSynonyms.SourceTagName, '+#+') as synonyms,
  e.body as 'excerpt',
  w.body as 'wikiBody'
from tags t
left join Posts e
  on t.ExcerptPostId = e.Id
left join Posts w
  on t.WikiPostId = w.Id
left join TagSynonyms 
  on TagSynonyms.TargetTagName = t.tagName
group by t.tagName, e.body, w.body,, t."count"
order by t.tagName asc

Enter Parameters

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