I have a database of account names where I need to filter out any account name that begins with the 4-letter abbreviation of our hotels. Here's what I'm using (which is not working):
NOT LIKE N'*DCBH*' OR NOT LIKE N'*DCBR*' OR NOT LIKE N'*LANP*'
I tried the % sign instead of *, but that didn't work either.
Any insight you can provide will be greatly appreciated.
NOT LIKE N'*DCBH*' OR NOT LIKE N'*DCBR*' OR NOT LIKE N'*LANP*'
I tried the % sign instead of *, but that didn't work either.
Any insight you can provide will be greatly appreciated.