SELECT tag_name, count(*) FROM (SELECT p.Id as post_id FROM

0

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 tag_name, count(*) FROM
(SELECT p.Id as post_id FROM
  Posts p
  JOIN PostTags pt on pt.PostId = p.Id
  JOIN Tags t on t.Id = pt.TagId
  WHERE t.TagName like '%cloudformation%') as posts_matched
JOIN 
(SELECT  t.TagName as tag_name, p.Id as post_id FROM
  Posts p
  JOIN PostTags pt on pt.PostId = p.Id
  JOIN Tags t on t.Id = pt.TagId) as post_tags 
ON post_tags.post_id = posts_matched.post_id
GROUP BY tag_name

Enter Parameters

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