Find Questions Containing a Single Tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

A query to look for questions that contain a SINGLE tag - something that can't be achieved with the native search tools on the Stack Overflow site. This example returns the top 10 questions, sorted by the last activity date.

Stack Overflow

Q&A for professional and enthusiast programmers

DECLARE @tag nvarchar(250)

-- Choose which tag you want to search for here:
SET @tag = 'java'

SELECT TOP 10 Id AS [Post Link], Tags
FROM Posts
WHERE Tags = '<' + @tag + '>' AND PostTypeId = 1
ORDER BY LastActivityDate Desc

Enter Parameters

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