List of Favorites for a UserId containing some Text

0

Please login or register to vote for this query.

(click on this box to dismiss)

Query Favorites by UserId and text contents.

Stack Overflow

Q&A for professional and enthusiast programmers

-- List of Favorites for a UserId containing some Text
-- Query Favorites by UserId and text contents.

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
     ((lower(Posts.Tags) LIKE lower('%<##Text##>%')) OR
     (lower(Posts.Title) LIKE lower('%##Text##%')) OR
     (lower(Posts.Body) LIKE lower('%##Text##%')))

Enter Parameters

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