SELECT word FROM table WHERE word NOT LIKE '%a%' 
AND word NOT LIKE '%b%' 
AND word NOT LIKE '%c%';
Answer from laher on Stack Overflow
🌐
Snowflake Documentation
docs.snowflake.com › en › sql-reference › functions › like_any
LIKE ANY | Snowflake Documentation
You can use the NOT logical operator before the subject to perform a case-sensitive comparison that returns TRUE if it does not match any of the specified patterns. SQL wildcards are supported in pattern: An underscore (_) matches any single character. A percent sign (%) matches any sequence ...
Discussions

NOT LIKE Alternatives in WHERE clause – SQLServerCentral Forums
NOT LIKE Alternatives in WHERE clause Forum – Learn more on SQLServerCentral More on sqlservercentral.com
🌐 sqlservercentral.com
May 30, 2023
How to put several LIKE & NOT LIKE statements in WHERE SQL clause?
It will let me do: WHERE ColumnName ... WHERE ColumnName NOT LIKE ‘string’, AND ColumnName NOT LIKE ‘string2’ What is the proper syntax to combine several LIKE & NOT LIKE parameters in the same WHERE clause of a Microsoft SQL Server SELECT statement? Thank you... More on community.spiceworks.com
🌐 community.spiceworks.com
8
4
April 14, 2010
SQL LIKE ANd NOT LIKE - SQLTeam.com Forums
Hi All, I am wondering if someone could help me with an SQL query. I need to return results from a table with words which have 'an' in them; so I am using '%an%' but i don't want the word 'AND' to show up which it is doing. How can I have one but leave out 'and'? Thanks! More on forums.sqlteam.com
🌐 forums.sqlteam.com
0
February 24, 2020
NOT LIKE with '%'
but for finding cities that do not start or end with vowel I can't just add a NOT into the above SQL, instead I have to do ... your colloquial use of 'OR' trips you up here, i think. your last query finds cities that NEITHER start NOR end with a vowel. Which, indeed, is NOT a reversal of your original query. More on reddit.com
🌐 r/SQL
9
1
March 7, 2024
🌐
Reddit
reddit.com › r/sql › a little trick: not like %, or not like any number.
r/SQL on Reddit: A little trick: NOT LIKE %, or NOT LIKE any number.
August 23, 2015 -

I've been working on a few automated vendor reports and everything is going fairly well except at the final step when everything is being put together I end up with a few invalid results, such as having ID's that aren't numeric, or ID's that are numeric but have a % sign in them and are therefore invalid.

Googling for these answers wasn't exactly easy because of how many other related articles there are so I thought I'd share:

WHERE
    ID NOT LIKE '%[%]%'
    OR ID NOT LIKE '%[^0-9]%'

Happy Sunday.

🌐
SQLServerCentral
sqlservercentral.com › forums › topic › not-like-alternatives-in-where-clause
NOT LIKE Alternatives in WHERE clause – SQLServerCentral Forums
May 30, 2023 - DROP TABLE IF EXISTS returned_products; GO CREATE TABLE returned_products( returned_products_id INT IDENTITY(1,1), returned_products_reason VARCHAR(1000)) ALTER TABLE returned_products ADD CONSTRAINT returned_products_PK PRIMARY KEY (returned_products_id); DECLARE @c_reason_1 VARCHAR(100) = 'reason_1', @c_reason_2 VARCHAR(100) = 'reason_2', @c_reason_3 VARCHAR(100) = 'reason_3'; INSERT INTO returned_products(returned_products_reason) VALUES(@c_reason_1), (@c_reason_2), (@c_reason_1+@c_reason_3), (@c_reason_1+@c_reason_3+@c_reason_2) SELECT rp.* FROM returned_products rp WHERE rp.returned_products_reason NOT LIKE '%'+@c_reason_3+'%' AND rp.returned_products_reason NOT LIKE '%'+@c_reason_2+'%'
🌐
W3Schools
w3schools.com › sql › sql_not.asp
SQL NOT Operator
SQL HOME SQL Intro SQL Syntax SQL Select SQL Select Distinct SQL Where SQL Order By SQL And SQL Or SQL Not SQL Insert Into SQL Null Values SQL Update SQL Delete SQL Select Top SQL Aggregate Functions SQL Min and Max SQL Count SQL Sum SQL Avg SQL Like SQL Wildcards SQL In SQL Between SQL Aliases ...
🌐
Teradata
docs.teradata.com › r › Enterprise_IntelliFlex_VMware › SQL-Functions-Expressions-and-Predicates › Logical-Predicates › LIKE › NOT-LIKE
LIKE/NOT LIKE - Teradata Vantage - Analytics Database
Loading application · Promo placeholder · Tracking Consent Teradata.com · Developers · Getting Started · VantageCloud Lake Documentation AI Unlimited All Documentation · Downloads · Community · Teradata Community Technical Medium Blogs Github Stack Overflow · Try for free
Find elsewhere
🌐
W3Schools
w3schools.com › sql › sql_any_all.asp
SQL ANY and ALL Operators
SQL HOME SQL Intro SQL Syntax SQL Select SQL Select Distinct SQL Where SQL Order By SQL And SQL Or SQL Not SQL Insert Into SQL Null Values SQL Update SQL Delete SQL Select Top SQL Aggregate Functions SQL Min and Max SQL Count SQL Sum SQL Avg SQL Like SQL Wildcards SQL In SQL Between SQL Aliases SQL Joins SQL Inner Join SQL Left Join SQL Right Join SQL Full Join SQL Self Join SQL Union SQL Union All SQL Group By SQL Having SQL Exists SQL Any, All SQL Select Into SQL Insert Into Select SQL Case SQL Null Functions SQL Stored Procedures SQL Comments SQL Operators
🌐
SQLTeam
forums.sqlteam.com › t › sql-like-and-not-like › 17338
SQL LIKE ANd NOT LIKE - SQLTeam.com Forums
February 24, 2020 - Hi All, I am wondering if someone could help me with an SQL query. I need to return results from a table with words which have 'an' in them; so I am using '%an%' but i don't want the word 'AND' to show up which it is d…
🌐
Microsoft Learn
learn.microsoft.com › en-us › sql › t-sql › language-elements › like-transact-sql
LIKE (Transact-SQL) - SQL Server | Microsoft Learn
For more information, see COLLATE (Transact-SQL). If the LIKE '5%' symbol is specified, the Database Engine searches for the number 5 followed by any string of zero or more characters. For example, the following query shows all dynamic management views in the AdventureWorks2025 database, because they all start with the letters dm. -- Uses AdventureWorks SELECT Name FROM sys.system_views WHERE Name LIKE 'dm%'; GO · To see all objects that aren't dynamic management views, use NOT LIKE 'dm%'. If you have a total of 32 objects and LIKE finds 13 names that match the pattern, NOT LIKE finds the 19 objects that don't match the LIKE pattern.
🌐
UniversalClass
universalclass.com › articles › computers › sql › using-the-in-not-and-like-operators-in-sql.htm
Using the IN, NOT, and LIKE Operators in SQL
... The result is the following data results. The NOT operator works with all of your SQL keywords to negate results. Think of the NOT operator as a cancellation phrase. When you use the IN operator, the SQL language first gets all of the values that match. In this case, the parameters are ...
🌐
Educative
educative.io › answers › what-is-not-like-operator-in-sql
What is NOT LIKE operator in SQL?
The following is the basic syntax for using SQL’s NOT LIKE operator. SELECT column1, column2, ... ... SELECT column1, column2, ...: Specifies the columns to retrieve. FROM table_name: Indicates the table from which to retrieve data. WHERE column_name NOT LIKE pattern: Filters rows where the column_name does not match the pattern. Here pattern can be defined using the % and _ wildcards.
🌐
DigitalOcean
digitalocean.com › community › tutorials › sql-like-sql-not-like
SQL Like - SQL Not Like | DigitalOcean
August 4, 2022 - SELECT column FROM table_name WHERE column NOT LIKE pattern; UPDATE table_name SET column=value WHERE column NOT LIKE pattern; DELETE FROM table_name WHERE column NOT LIKE pattern; As an example, let’s say we want the list of customer names that don’t start with ‘A’. Below query will ...
🌐
W3Schools
w3schools.com › sql › sql_like.asp
SQL LIKE Operator
SELECT * FROM Customers WHERE CustomerName LIKE '_r%'; Try it Yourself » · If no wildcard is specified, the phrase has to have an exact match to return a result. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: [email protected] · If you want to report an error, or if you want to make a suggestion, send us an e-mail: [email protected] · HTML Tutorial CSS Tutorial JavaScript Tutorial How To Tutorial SQL Tutorial Python Tutorial W3.CSS Tutorial Bootstrap Tutorial PHP Tutorial Java Tutorial C++ Tutorial jQuery Tutorial
🌐
Quora
quora.com › What-is-the-query-to-use-a-multiple-not-like-operator-in-Oracle-SQL
What is the query to use a multiple 'not like' operator in Oracle SQL? - Quora
Answer (1 of 4): I have used the below Sql to explain your question : Question : Select from table employee where employee names are not starting with ‘M’ ,’N’,’O’ Answer : SELECT * FROM EMPLOYEE WHERE ( EMP_NAME NOT LIKE ‘M%’ AND EMP_NAME NOT LIKE ‘N%’ AND EMP_NAME NOT LIKE ‘O%’ )
🌐
Programiz
programiz.com › sql › like-operator
SQL LIKE and NOT LIKE Operators (With Examples)
SELECT column1, column2, ... FROM table_name WHERE column NOT LIKE value; ... Here, the SQL command selects all customers except those whose country is USA. We can use the LIKE operator with multiple string patterns using the OR operator. For example, -- select customers whose last_name starts with R and ends with t -- or customers whose last_name ends with e SELECT * FROM Customers WHERE last_name LIKE 'R%t' OR last_name LIKE '%e';
🌐
LearnSQL.com
learnsql.com › blog › like-sql-not-like
What Do the Operators LIKE and NOT LIKE Do? | LearnSQL.com
March 4, 2021 - Let’s substitute LIKE with NOT LIKE in one of our earlier examples and see the effect. SELECT FirstName, LastName, Age FROM person_info WHERE LastName NOT LIKE 'Peterson'; ... As you can see, using NOT LIKE negates the pattern you specify. This is similar to other NOT operators you see in SQL.
🌐
Reddit
reddit.com › r/sql › not like with '%'
r/SQL on Reddit: NOT LIKE with '%'
March 7, 2024 -

So using MS SQL Server, I am wondering why this works (get cities that start and end with vowel)

SELECT DISTINCT CITY FROM STATION WHERE CITY LIKE '[AEIOU]%[AEIUO]'

but for finding cities that do not start and end with vowel I can't just add a NOT into the above SQL, instead I have to do

SELECT DISTINCT CITY FROM STATION WHERE CITY NOT LIKE '[AEIOU]%' AND CITY NOT LIKE '%[AEIUO]'

🌐
Data.world
docs.data.world › documentation › sql › concepts › basic › LIKE_and_NOT_LIKE.html
LIKE and NOT LIKE | SQL Tutorial Documentation on data.world
September 30, 2025 - Similarly there are often times you’d like to exclude data from a query but you want to exclude several different ways it could have been written in the original table. The LIKE and NOT LIKE expressions allow you to specify a set of similar values to be either returned or excluded from a query’s results.