17.10 - Transition Tables - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1184-171K
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.