NOT

SQL NOT Keyword

The NOT operator is used in a WHERE clause to filter records that do not meet a specified condition. It is commonly used to reverse the result of a logical expression.

Tutorials dojo strip

SQL NOT Syntax

SQL

SQL NOT with Equality Example

This query selects all patients whose gender is not female.

SQL

SQL NOT with IN Example

This query selects all doctors whose specialty is not Cardiology or Pediatrics.

SQL

SQL NOT with LIKE Example

This query selects all students whose names do not start with ‘A’.

SQL

SQL NOT Labs

Tutorials dojo strip