NVL2 Function Syntax | Teradata Vantage - NVL2 Function Syntax - Advanced SQL Engine - Teradata Database

SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-30
dita:mapPath
tpt1555966086716.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1145
lifecycle
previous
Product Category
Teradata Vantageā„¢
[TD_SYSFNLIB.] NVL2 ( expr1, expr2, expr3 )

Syntax Elements

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.