Description | Example |
---|---|
Simple predicate | salary between 10000 and 20000 |
Predicate with not operator | edept not like 'eng_%' |
Predicates combined using or operator | edept like 'eng_%' or edept like 'admin_%' |
Predicates combined using and operator | salary between 10000 and 20000 and edept like 'eng_%' |
Predicates combined using parentheses to specify evaluation | (salary between 10000 and 20000 and edept like 'eng_%' ) or edept like 'admin_%' |
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 |