Search something in my answers under a specific tag


Please login or register to vote for this query.

(click on this box to dismiss)


Q&A for serious players and enthusiasts of chess

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

SELECT TOP 100 Id, Body
FROM Posts
  ParentId is NOT NULL
  AND OwnerUserId = 3889449
  AND (SELECT Tags FROM Posts WHERE Id = ParentId) LIKE CONCAT('%', @Tag, '%')
  AND Body LIKE CONCAT('%', @SearchTerm, '%')
ORDER BY CreationDate DESC

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results