Questions with exactly 1 Tag

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 TOP 50 pt.PostId as [Post Link], t.TagName FROM PostTags pt LEFT JOIN Tags t
ON t.Id = pt.TagId
WHERE EXISTS (
SELECT 1 FROM PostTags pt2 WHERE pt2.PostId = pt.PostId  GROUP BY pt2.PostId 
  HAVING COUNT(pt2.TagId) = 1
)

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results