16.20 - Transition Tables - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1184-162K
Language
English (United States)

A transition table is a dynamically created table that you can reference using a correlation name.

The following table indicates the type of rows that are contained by a transition table depending on the triggering statement that caused the transition table to be created.

Triggering Statement Generates a Transition Table with this Row Set
DELETE Old rows only.
INSERT New rows only.
  • UPDATE
  • MERGE UPDATE
Old and new rows.

The following table documents the rows that can be referenced in a transition table depending on trigger granularity.

Trigger Granularity References Rows for this Transition Table
Row
  • NEW [ROW]
  • NEW TABLE
  • NEW_TABLE
Statement
  • OLD [ROW]
  • OLD TABLE
  • OLD_TABLE
  • OLD_NEW_TABLE

    OLD_NEW_TABLE is valid only for AFTER UPDATE triggers.