ZEROIFNULL Argument Types and Rules - Teradata VantageCloud Lake

Lake - Working with SQL

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
jbe1714339405530.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
jbe1714339405530
Value of arg ZEROIFNULL Value Returned
Not null Value of the numeric argument.
Null or zero Zero.

If the argument is not numeric, the value is converted to a numeric value according to implicit type conversion rules. If the argument cannot be converted, an error is reported. For more information, see Data Type Conversions.

If arg is a character string, the string is converted to a numeric value of FLOAT data type.

ZEROIFNULL cannot be applied to the following types of arguments:
  • BYTE or VARBYTE
  • BLOB or CLOB
  • CHARACTER or VARCHAR if the server character set is GRAPHIC