Fuzzy comment search

0

Please login or register to vote for this query.

(click on this box to dismiss)

CiviCRM

Q&A for administrators and users of the CiviCRM Constituent Relationship Management software

SELECT 
    Comments.CreationDate,
    Comments.Id as [Comment Link]
FROM 
    Comments
WHERE
    EXISTS (SELECT 1 FROM Comments as t where
      t.PostId = Comments.PostId
      AND t.TEXT LIKE ##threadneedle:string##
    )
    AND Comments.TEXT LIKE ##needle:string##
ORDER BY 
    Comments.CreationDate DESC

Enter Parameters

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