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)

Computational Science

Q&A for scientists using computers to solve scientific problems

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 meta site
loading Hold tight while we fetch your results