Subquery Options - Teradata Database - Teradata Vantage NewSQL Engine

SQL Data Manipulation Language

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
fbo1512081269404.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
B035-1146
lifecycle
previous
Product Category
Teradata Vantage™
column_name
Name of a column for which the insert operation supplies a new row value.
column_name can be specified in any order.
If a column_name is omitted, then any default value defined in the CREATE TABLE or CREATE VIEW request is used.
You cannot specify a derived period column name.
The begin and the end columns of a derived period column can be independently updated. The end column value must be greater than the begin column value of the derived period column.
subquery
The row or rows to be inserted consist of column values accessed by a query specification.
If a column name list is not specified, then the SELECT request must query the same number of columns as there are in the table that is receiving new rows.
You can specify nulls in the select expression list for columns that are not to be assigned values.
You cannot specify an ORDER BY clause as part of a subquery in an INSERT … SELECT request.
If the INSERT operation includes a column name list, values are assigned by matching column_name position with position of items in the select expression list.
HASH BY hash_list
Hash rows being inserted into a NoPI table across the AMPs based on the hash_list.
HASH BY RANDOM
Hash rows being inserted into a NoPI table across the AMPs randomly, a block at a time.
LOCAL ORDER BY order_list
Order rows being inserted into a table locally on the AMPs.