xxxxxxxxxx
SELECT first_name, last_name
FROM Customers
WHERE NOT country = 'USA';
xxxxxxxxxx
SELECT first_name, country
FROM Customers
WHERE country NOT IN ('UK', 'UAE');
xxxxxxxxxx
(NOT) operator excluding given
For example:
Select last_name, job_id From Employees
Where "Not" job_id = 'ABC';
xxxxxxxxxx
Returns true if a record DOESN’T meet the condition.
Example: Returns true if the user’s first_name doesn’t end with ‘son’.
SELECT * FROM users
WHERE first_name NOT LIKE '%son';
xxxxxxxxxx
(NOT) operator excluding given
For example:
Select last_name, job_id From Employees
Where "Not" job_id = 'ABC';