Questions with the given number of tags - with the given tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

Genealogy and Family History Meta

Q&A about the site for expert genealogists and people interested in genealogy or family history

with tagscounts_cte AS
(
SELECT
  q.Id AS qid,
  COUNT(t.Id) numtags
FROM Posts q INNER JOIN PostTags pt ON q.Id=pt.PostId
INNER JOIN Tags t ON t.id = pt.TagId
GROUP BY q.Id
)

SELECT TOP(##num?100##)
  qid AS [Post Link],
  numtags,
  q.Tags
FROM tagscounts_cte tc INNER JOIN Posts q ON q.Id=tc.qid  
INNER JOIN PostTags pt ON q.Id=pt.PostId
INNER JOIN Tags t ON t.id = pt.TagId
WHERE (t.TagName=##tagName:string?geometry##) AND (numtags=##tagscount?5##)

Enter Parameters

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