QuestionQ133

VerifiedExecuting queries using Databricks SQL and Databricks SQL Warehouses

A data analysis team uses the table_bronze SQL table as a source for one of its most complex projects. A project stakeholder notices that some downstream data is duplicated. The analysis team determines that table_bronze is the source of the duplication.

Which of the following queries can deduplicate data from table_bronze and write it to a new table_silver table?

Explanation

CREATE TABLE ... AS SELECT DISTINCT ... creates a new table from the source query while retaining only unique rows. DISTINCT removes duplicate rows from table_bronze before the data is written to table_silver.

Community Discussion

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