Total usage counts of "SEDE" vs "The SEDE"

1

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
  (SELECT COUNT(*) FROM Comments C WHERE
    C.Text COLLATE Latin1_General_BIN LIKE '%SEDE%' AND
    C.Text COLLATE Latin1_General_BIN NOT LIKE '%[tT]he SEDE%') AS ProperNounCommentCount,
  (SELECT COUNT(*) FROM Comments C WHERE
    C.Text COLLATE Latin1_General_BIN LIKE '%[tT]he SEDE%') AS AcronymCommentCount,
  (SELECT COUNT(*) FROM Posts P WHERE
    P.Body COLLATE Latin1_General_BIN LIKE '%SEDE%' AND
    P.Body COLLATE Latin1_General_BIN NOT LIKE '%[tT]he SEDE%') AS ProperNounPostCount,
  (SELECT COUNT(*) FROM Posts P WHERE
    P.Body COLLATE Latin1_General_BIN LIKE '%[tT]he SEDE%') AS AcronymPostCount

Enter Parameters

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