Search for comments by user and phrase

1

Please login or register to vote for this query.

(click on this box to dismiss)

Code Review

Q&A for peer programmer code reviews

SELECT c.Id AS [Comment Link]
  , c.UserId AS [User Link]
  , c.CreationDate AS [Date]
FROM Comments AS c
WHERE (##userId:int?0## = 0 OR userID=##userId:int##)
  AND Text LIKE '%##Phrase##%' COLLATE Latin1_General_100_CI_AI_SC
ORDER BY c.CreationDate DESC

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results