NVL2

Teradata Vantageā„¢ SQL Functions, Expressions, and Predicates

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K

Purpose

Returns one of two values based on whether or not expr1 is NULL.

Syntax



TD_SYSFNLIB.
Name of the database where the function is located.
expr1
A numeric or character expresssion.
  • If expr1 is not NULL, expr2 is returned.
  • If expr1 is NULL, expr3 is returned.
expr2
A numeric or character expresssion.
expr3
A numeric or character expresssion.