|
|
|
So there is ambiguity on what to do when an attribute value is NULL
|
SQL uses a three value logic system |
AND | TRUE | FALSE | UNKNOWN |
---|---|---|---|
TRUE | TRUE | FALSE | UNKNOWN |
FALSE | FALSE | FALSE | FALSE |
UNKNOWN | UNKNOWN | FALSE | UNKNOWN |
OR | TRUE | FALSE | UNKNOWN |
---|---|---|---|
TRUE | TRUE | TRUE | TRUE |
FALSE | TRUE | FALSE | UNKNOWN |
UNKNOWN | TRUE | UNKNOWN | UNKNOWN |
NOT | TRUE | FALSE | UNKNOWN |
---|---|---|---|
---> | FALSE | TRUE | UNKNOWN |
|
|
SELECT * FROM Employee WHERE BDate IS NULL |