NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
N-10
Null Values and Expression Evaluation
Null Values and Expression Evaluation
The following chart summarizes the results of expression evaluation with null values.
NULL_DISPLAY Option
NULL_DISPLAY is an option of the SQLCI report writer SET STYLE command that
defines a character to represent NULL print items in a report.
character
is a printable, single-byte character used to represent the null value in a printed
report. The default is ? (question mark).
Expression Type Condition Result
Boolean (AND, OR,
NOT)
Either value null
True, false, or null
See truth tables in Search
Conditions on page S-5
Arithmetic Either or both
values null
Null
NULL predicate See SEARCH CONDITION
Aggregate
functions
(except COUNT)
Evaluated after
eliminating nulls
Null if set is empty
COUNT
COUNT DISTINCT
Evaluated after
eliminating nulls
Zero if set is empty
Comparison:
> < = >=
<= <> LIKE
Either value null Null
IN predicate Expression is null Null
Subquery No values
returned
Null
NULL_DISPLAY "character"