Search something in my answers under a specific tag

1

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy Meta

Q&A about the site for science fiction and fantasy enthusiasts

DECLARE @SearchTerm nvarchar(max) = '##SearchTerm##'
DECLARE @Tag nvarchar(max) = '##Tag##'

SELECT TOP 100 Id as [Post Link], Body
FROM Posts P
WHERE
  ParentId is NOT NULL
  AND OwnerUserId = 3889449
  AND (SELECT Tags FROM Posts WHERE Id = P.ParentId) LIKE CONCAT('%<', @Tag, '>%')
  AND LOWER(Body) LIKE CONCAT('%', LOWER(@SearchTerm), '%')
ORDER BY CreationDate DESC

Enter Parameters

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