Rules For CREATE TABLE AS … WITH NO DATA That Does Not Use a Subquery To Define The Source - 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™
In addition to the set of general rules provided in General Rules For CREATE TABLE AS … WITH NO DATA, the following list of specific rules applies only to an AS … WITH NO DATA clause that does not specify a subquery.
  • Teradata Database copies all the available single-column statistics on source table columns as zeroed statistics.
  • Teradata Database copies all available multicolumn statistics except those multicolumn statistics that include the system-derived column PARTITION as multicolumn zeroed statistics.
  • Teradata Database 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.
  • Teradata Database 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.