Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

NOT

NOT

The NOT command is employed with WHERE to exclusively include rows where a condition is false. The following SQL statement selects all fields from “Customers” where the country is not “Germany”:

Example

SELECT * FROM Customers
WHERE NOT Country=‘Germany’;