SQLite NOT Operator
The NOT Operator
NOT turns a condition around. It returns the records where the condition is not true.
This example selects all the customers that are not from Spain:
NOT LIKE
Select the customers whose name does not start with A:
NOT BETWEEN
Select the products with a price that is not between 10 and 50:
NOT IN
Select the customers that are not from Germany, France or the UK:
NOT With Other Operators
You can put NOT in front of any condition. This example selects the products that do not cost more than 10:
You will learn more about LIKE, BETWEEN and IN in later chapters.