Find questions with only the [script] tag

0

Please login or register to vote for this query.

(click on this box to dismiss)

Philosophy Meta

Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence

DECLARE @TagId int = (
SELECT
  t.Id
FROM Tags t
WHERE t.TagName = ##TagName:string##
)

SELECT
  CONCAT('site://q/', p.Id, '|', p.Title) AS [Post],
  p.CreationDate,
  p.Tags
FROM PostTags pt
JOIN Posts p ON p.Id = pt.PostId
WHERE pt.TagId = @TagId
GROUP BY pt.PostId, p.Id, p.Title, p.CreationDate, p.Tags
HAVING COUNT(pt.PostId) = 1
ORDER BY p.CreationDate DESC

Enter Parameters

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