SELECT (LEN(P.Body COLLATE Latin1_General_BIN) - LEN(REPL...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Psychology and Neuroscience

Q&A for practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry

SELECT
  (LEN(P.Body COLLATE Latin1_General_BIN) - LEN(REPLACE(P.Body COLLATE Latin1_General_BIN, 'ERROR', '____'))) AS MatchCount
FROM Posts P
--WHERE
--  (LEN(P.Body COLLATE Latin1_General_BIN) - LEN(REPLACE(P.Body COLLATE Latin1_General_BIN, 'ERROR', '____'))) >= 2
--ORDER BY [MatchCount] DESC
;

Enter Parameters

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