Rules for CREATE TABLE AS … WITH NO DATA that Does Not Use a Subquery to Define the Source - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
The following list of specific rules applies only to an AS … WITH NO DATA clause that does not specify a subquery.
  • The general rules in General Rules for CREATE TABLE AS … WITH NO DATA.
  • Vantage copies all the available single-column statistics on source table columns as zeroed statistics.
  • Vantage copies all available multicolumn statistics except those multicolumn statistics that include the system-derived column PARTITION as multicolumn zeroed statistics.
  • Vantage copies all available statistics from source table indexes to the target table as zeroed index statistics when you do not define any indexes for the target table.
  • Vantage copies all available statistics on the system-derived PARTITION column and any multicolumn statistics that include the system-derived PARTITION columns in their column set as single-column and multicolumn zeroed statistics, respectively, from source table column sets to the target table as zeroed index statistics when you do not define any indexes for the target table.