A data analyst needs to create a new Unity Catalog managed Delta table by combining data from three sources: an existing Delta table registered in Unity Catalog, a CSV file at an external cloud path, and a Parquet file at another external path. Which SQL approach is correct?
Show answer & explanation
Correct answer: B
WHY B: Databricks SQL supports CREATE TABLE AS SELECT (CTAS) that joins multiple sources including registered Delta tables and files read inline via read_files(), enabling a single declarative statement to produce a managed Unity Catalog Delta table from heterogeneous sources. WHY NOT A: CTAS fully supports multi-source joins; creating a view instead of a table would not materialize data. WHY NOT C: Multi-source CTAS is supported; sequential INSERT INTO statements are less efficient and require pre-creating an empty table. WHY NOT D: COPY INTO is for appending files into an existing table; it does not support joining with other sources in a single operation. WHY NOT E: CTAS natively handles joins across Delta and file-based sources; no ALTER TABLE workaround is necessary.