Q&A about the site for people who build and repair bicycles, people who train cycling, or commute on bicycles
DECLARE @SearchTerm nvarchar(max) = '##SearchTerm##' DECLARE @Tag nvarchar(max) = '##Tag##' SELECT TOP 100 Id as [Post Link], Body FROM PostsWithDeleted 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