16.20 - Why Teradata Database Does Not Support The ANSI SQL STATE and RELATIVE Comparison Options - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Teradata Database
Teradata Vantage NewSQL Engine
Release Number
March 2019
Content Type
Programming Reference
Publication ID
English (United States)
Last Update

The ANSI SQL:2011 standard supports 3 comparison options for ordering definitions:

  • MAP

Teradata Database does not support the STATE and RELATIVE comparisons because they do not mesh well with the Teradata parallel architecture. The issue that makes these options problematic is that there is a strong relationship between the concepts of equality and the hash values that Teradata Database generates for many of its join strategies. Two values that are equal in the relational use of the concept must generate hash values that are also equal.

The MAP ordering approach enables Teradata Database to generate internally an appropriate hash value for the UDT, enabling all Optimizer join strategies to function properly.