Streamlining Table Cloning in Teradata and Leveraging Zero-Copy Cloning in Snowflake

Table cloning is required for purposes such as data backup, testing, and replication. Teradata, a leading data warehousing platform, provides an efficient method for cloning tables. However, Snowflake, a cloud-based data warehousing platform, offers an even more effective approach with its zero-copy cloning feature. This article will compare table cloning in Teradata with Snowflake’s zero-copy cloning.

Teradata Clone Tables: Conventionally, cloning tables in Teradata entails a three-step process:

  1. Retrieve the DDL statement of the table to be cloned.
  2. Create a copy of the table structure using this DDL.
  3. Run an INSERT…SELECT into the empty table.

Teradata provides a streamlined alternative with the statement:

CREATE TABLE <TABLENAME> AS <TABLE_TO_CLONE> WITH [NO] DATA [AND STATISTICS]

The CREATE TABLE AS statement simplifies the process of creating a new table, whether it is empty or populated, eliminating an extra step from the traditional process.

Teradata’s CREATE TABLE AS statement provides multiple advantages:

The process of transferring statistics or definitions from the original table to the cloned table is streamlined, saving time and resources formerly used to recollect statistics.

The CREATE TABLE AS method enables SQL-based cloning, which allows for the creation and population of clone tables using SQL statements, including joins and aggregations.

Rules and attributes for cloning tables in Teradata include:

All attributes are also cloned when creating a table, except when cloning based on a SQL statement.

Depending on the SQL syntax, you can modify table and column attributes during cloning.

Specifying the primary index when cloning from a SQL statement is essential for optimum performance and avoiding skewed data.

Snowflake’s Zero-Copy Cloning:

Snowflake’s zero-copy cloning feature further simplifies the cloning process. Unlike Teradata, you can create a clone of a table or schema using a single statement.

CREATE TABLE <TABLENAME> CLONE <TABLE_TO_CLONE>;

Snowflake’s zero-copy cloning method is faster and more cost-effective as it does not duplicate data or require additional storage. Moreover, Snowflake automatically handles metadata, statistics, and primary key definitions, simplifying the cloning process. In comparison, Teradata’s CREATE TABLE AS statement requires more steps to achieve the same result. Therefore, by adopting Snowflake’s streamlined cloning approach, you can optimize your data warehousing operations by reducing complexity and saving time and resources.

Related Services

🏗️ Planning a Data Platform Migration?

Architecture-first approach: we design before a single line of code is written. Zero data loss across every migration delivered.

Our Migration Services →

📊 Data Platform Migration Survey

Help us map where the industry is heading. Results are public — see what others chose.

1. What is your current data platform?

2. Where are you migrating to (or evaluating)?

Migrating FROM
Migrating TO

Thanks for voting! Share this with your network.

Follow me on LinkedIn for daily insights on data warehousing and platform migrations.

Stay Ahead in Data Warehousing

Get expert insights on Teradata, Snowflake, BigQuery, Databricks, Microsoft Fabric, and modern data architecture — delivered to your inbox.

Leave a Comment

DWHPro

Expert network for enterprise data platforms. Senior consultants, project teams built for your challenge — across Teradata, Snowflake, Databricks, and more.

📍Vienna, Austria & Jacksonville, Florida

Quick Links
Services Team Teradata Book Blog Contact Us
Connect
LinkedIn → [email protected]
Newsletter

Join 4,000+ data professionals.
Weekly insights on Teradata, Snowflake & data architecture.