Skip to content

NOT

SELECT * FROM Employees
WHERE NOT Gender='Male';
| Employee_Id | Name | Gender |
|-------------|----------|--------|
| 2 | Emma | Female |
| 4 | Bella | Female |
| 6 | Olivia | Female |

In this example, the “NOT” statement is used in conjunction with the “WHERE” clause to display all records from the ‘Employees’ table where the gender is not ‘Male’. Thus, only ‘Female’ records are returned.