List of Favorites for a UserId Tagged with <TagName>

0

Please login or register to vote for this query.

(click on this box to dismiss)

Query Favorites by UserId and Tag Name. Tags must be specified as <tagname>.

Stack Overflow

Q&A for professional and enthusiast programmers

-- List of Favorites for a UserId Tagged with <TagName>
-- Query Favorites by UserId and Tag Name.  Tags must be specified as <tagname>.

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

FROM Votes, Posts

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

Enter Parameters

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