Transition Tables - Analytics Database - Teradata Vantage

SQL Data Definition Language Detailed Topics

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
vuk1628111288877.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1184
lifecycle
latest
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.