Transition Tables - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

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.