In T-SQL, how would you check if a string doesn\'t contain another string?
I have an nvarchar which could be \"Oranges Apples\".
I would like to do
The answers you got assumed static text to compare against. If you want to compare against another column (say, you're joining two tables, and want to find ones where a column from one table is part of a column from another table), you can do this
WHERE NOT (someColumn LIKE '%' || someOtherColumn || '%')