SQL Not

The SQL Not clause is sused to filter records by excluding those that meet a certain condition. It is essentially the opposite of the WHERE clause condition.


Tutorials dojo strip

SQL Not Syntax

SQL


SQL Not Example

This query selects the first_name, last_name, and gender columns from the patients table.

SQL


SQL NOT Using NOT with Multiple Conditions Example

This query selects the first_name, last_name, contact_number and dob columns from the Patients table, applying a condition using NOT operator.

SQL


SQL NOT Combining NOT with Other Clauses Example

This query retrieves all the patients whose first_name does not start with the letter “A” and whose dob (date of birth) is not exactly ‘1990-01-01’.

SQL


SQL Not Visual Diagram


SQL Not Labs

Tutorials dojo strip