Semantics of SQL Nulls | Database Design | Teradata Vantage - Semantics of SQL Nulls - Advanced SQL Engine - Teradata Database

Database Design

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
kko1591750222108.ditamap
dita:ditavalPath
kko1591750222108.ditaval
dita:id
B035-1094
lifecycle
previous
Product Category
Teradata Vantage™

For most applications, an SQL null means that the value of interest is not known. The only exceptions to this occur when nulls are used to represent the empty set. SQL does not support the empty set.

Types of Missing Values

The following list touches on most of the common uses of SQL nulls:

  • Value is unknown
  • Value is not applicable
  • Value does not exist
  • Value is not defined
  • Value is not valid
  • Value is not supplied
  • Value is the empty set

The semantics, properties, and behavior of each of these null types are different, but SQL treats them identically, including all 14 of the ANSI/X3/SPARC “null manifestations” and their 8 submanifestations.