This is for SQL-Server 2008. Here’s an example column:
-----------------
| strings |
-----------------
| string1 |
-----------------
| string2 |
-----------------
| string3 |
-----------------
| string4 |
-----------------
| ... |
-----------------
What would be a query to count the number of appearances of ANY string that is NOT “string1”, “string2” or “string3”?
1 Answer