Null Sorts as the Lowest Value in a Collation - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

When rows are sorted using an ORDER BY clause, nulls sort as the lowest value.

If any row has a null in the column being grouped, all rows having a null are placed into one group. That is, though syntactically incorrect to formulate the predicate NULL = NULL in a DML request (because nulls have no value and therefore cannot be equated), when SQL sorts nulls, the implicit result is that NULL = NULL.