Complete the code to create a clone of a database for development use.
CREATE DATABASE dev_clone CLONE [1];The production_db is cloned to create a development environment without affecting the original data.
Complete the code to clone a schema for testing purposes.
CREATE SCHEMA test_schema_clone CLONE [1].sales_schema;The prod_db is cloned to create a test schema, allowing safe testing without impacting production.
Fix the error in the clone creation command for backup purposes.
CREATE DATABASE backup_clone [1] backup_db;The correct keyword to create a clone in Snowflake is CLONE. Other keywords like COPY or DUPLICATE are invalid here.
Fill both blanks to clone a table for testing and rename it.
CREATE TABLE [1] CLONE [2].orders;
The table orders from prod_db is cloned and renamed test_orders for testing.
Fill all three blanks to clone a database for backup, set a comment, and specify a clone time.
CREATE DATABASE [1] CLONE [2] AT (TIMESTAMP => '[3]');
This command clones the production_db as backup_db_clone at the specified timestamp for backup purposes.