QuestionQ99

VerifiedManaging Data

A data analyst must create an empty managed table table_name in database database_name with a specified schema. The table must be recreated and remain empty whether or not it already exists.

Which command can the analyst use to accomplish this task?

Explanation

CREATE OR REPLACE TABLE database_name.table_name (width INT, length INT, height INT) creates the table with the specified columns or replaces an existing permanent table. With no LOCATION, it is a managed table, and because no query supplies rows, it is empty. The column definition belongs in the parenthesized table specification; a USING clause instead requires a data source.

Learn more

Community Discussion

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