Where Statements
Customers….ID Name Age Email
1 Alice 30 [email protected]
2 Bob null [email protected]
3 Charlie 25 null
4 Dave 45 [email protected]
5 Eve null null
Say I want Customers whose age is not 30
SELECT Name
FROM Customers
WHERE Name != 30
This will only return Charlie and Dave, but maybe we want Bob and Eve too. Then in this case, we need to include Or Name is Null
SQL Distinct Keyword
NOT Keyword
NOT LENGTH('hi') > 15
Left JOIN