Which statement about CREATE TABLE ... LIKE is correct?

Master Snowflake Data Engineer Exam. Study with flashcards and multiple choice questions, each question includes hints and explanations. Prepare for your success!

Multiple Choice

Which statement about CREATE TABLE ... LIKE is correct?

Explanation:
Creating a table with this syntax builds a new table that has the same column definitions as an existing table but contains no rows. It copies the structure—names and data types—so you can later insert data into the new table or adjust its defaults and constraints as needed. This is different from copying the data itself, which would happen if you cloned the table or used a select-into/CTAS statement. It’s also not a view, which would be a virtual table built from a query. If you need a structure-only copy for scaffolding, this is the right tool; if you need an exact data copy, use a CTAS with a select from the source or a zero-copy clone for a point-in-time data copy.

Creating a table with this syntax builds a new table that has the same column definitions as an existing table but contains no rows. It copies the structure—names and data types—so you can later insert data into the new table or adjust its defaults and constraints as needed. This is different from copying the data itself, which would happen if you cloned the table or used a select-into/CTAS statement. It’s also not a view, which would be a virtual table built from a query. If you need a structure-only copy for scaffolding, this is the right tool; if you need an exact data copy, use a CTAS with a select from the source or a zero-copy clone for a point-in-time data copy.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy