QuestionQ110

VerifiedProductionizing Data Pipelines

A data architect has determined that a table of the following format is necessary:

Question Image

Which code block is used by SQL DDL command to create an empty Delta table in the above format regardless of whether a table already exists with this name?

Explanation

CREATE OR REPLACE TABLE will drop the existing table if it exists and create a new empty table with the specified schema. This is the correct DDL syntax for ensuring a fresh table exists regardless of prior state, using standard column definitions without extra clauses.

Community Discussion

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