Transition Tables - 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

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.