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)

Craft CMS

Q&A for administrators, end users, developers and designers for Craft CMS

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 '%cyberark%') 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 sites:
loading Hold tight while we fetch your results