Search posts by UserId, comment text

0

Please login or register to vote for this query.

(click on this box to dismiss)

Gardening and Landscaping

Q&A for gardeners and landscapers

SELECT Posts.Id AS [Post Link], Comments.Text, Comments.CreationDate
  FROM Comments
  LEFT JOIN Posts ON Posts.Id = Comments.PostId
 WHERE UPPER(Comments.Text) LIKE UPPER('%##CommentText##%')
   AND Comments.UserId = '1828637'
   AND Posts.Tags LIKE '%<##TagName##>%'
 ORDER BY Comments.CreationDate DESC

Enter Parameters

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