QuestionQ47

Data Storage and Processing

A company’s employees table was replaced with a new version:

Question Image

How can the original table be recovered with the least operational overhead?

Explanation

CREATE OR REPLACE TABLE drops the prior table and creates a replacement with the same name, while retaining the dropped table in Time Travel. UNDROP TABLE returns an error if a table of that name already exists, so the replacement must first be renamed before the original employees table can be restored.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!