Search posts by UserId, comment text


Please login or register to vote for this query.

(click on this box to dismiss)

Craft CMS Meta

Q&A about the site for administrators, end users, developers and designers for Craft CMS

SELECT Posts.Id, 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'
 ORDER BY Comments.CreationDate DESC

Enter Parameters

Switch sites:
loading Hold tight while we fetch your results