Checks the value of the first expression and, if it is null or a SAS missing value, returns the second expression.
Category: | Special |
Returned data type: | Any data type, depending on the context |
specifies any valid expression.
Data type | All data types are valid. |
See | <sql-expression> |
FedSQL Expressions |
Statements
|
Results
|
---|---|
select ifnull(AvgHigh, 0) as "AvgHigh: 0 indicates null/missing" from worldtemps; |
AvgHigh: 0 indicates null/missing 90 70 86 90 97 83 76 89 90 89 0 78 |