Search UserId's Favorites for Tags with <TagName> (Wildcard)

2

Please login or register to vote for this query.

(click on this box to dismiss)

Search UserId's Favorites for a Tag string. Tag searches use a % wildcard by default.

Stack Overflow

Q&A for programmers

-- Search UserId's Favorites for Tags with <TagName> (Wildcard)
-- Search UserId's Favorites for a Tag string.  Tag searches use a % wildcard by default.

SELECT Posts.id as [Post Link], Posts.Score as [Score], Posts.Tags as [Tagged With]

FROM Votes, Posts

WHERE
     (Votes.PostId=Posts.Id) AND
     (Votes.VoteTypeId = 5) AND
     (Votes.UserId=##User:int##) AND
     (Posts.Tags LIKE '%##TagName##%')

ORDER BY Posts.Score DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results
:records returned in :time ms:cached