bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

SQL NOT Keyword

Not

The NOT command is used with WHERE to only include rows where a condition is not true.

The following SQL statement selects all fields from "Customers" where country is NOT "Germany":

Example

SELECT * FROM Customers

WHERE
 NOT Country='Germany';

Previous

SQL SELECT TOP, LIMIT and ROWNUM Keywords

Next

SQL NOT NULL Keyword