Q&A for professional and enthusiast programmers
SELECT TOP 2000 C.Id AS [Comment Link], P.Score, C.PostId, C.Text FROM Comments C JOIN Posts P ON P.Id = C.PostId WHERE C.Text COLLATE Latin1_General_BIN LIKE '%[tT]hank%' AND C.Text COLLATE Latin1_General_BIN NOT LIKE '% but %' AND C.Text COLLATE Latin1_General_BIN NOT LIKE '%?%' AND LEN(C.Text) <= 45 ORDER BY P.Score DESC, C.PostId ;