DEFAULT Function Comparison Operators - Teradata Database - Teradata Vantage NewSQL Engine

SQL Data Manipulation Language

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
fbo1512081269404.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™

Following existing comparison rules, a condition with a DEFAULT function used with comparison operators other than IS NULL or IS NOT NULL is unknown if the DEFAULT function evaluates to null.

A condition other than IS NULL or IS NOT NULL with a DEFAULT function compared with a null evaluates to unknown.

IF a DEFAULT function is used with … THEN the comparison is …
IS NULL
  • TRUE if the default is null
  • Else it is FALSE
IS NOT NULL
  • FALSE if the default is null
  • Else it is TRUE

For more information about the DEFAULT function, see Teradata Vantage™ SQL Functions, Expressions, and Predicates, B035-1145.