select top(1) tag_combo from (select pttg.PostId ,STRING_...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Webmasters

Q&A for pro webmasters

select top(1)
  tag_combo
from
  (select
  pttg.PostId
  ,STRING_AGG(pttg.TagId,',') WITHIN GROUP (ORDER BY pttg.TagId ASC) tag_combo
  from PostTags pttg
  group by pttg.PostId) t
group by tag_combo
order by count(1)

Enter Parameters

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