Skip to content
DAA
Executing queries using Databricks SQL and Databricks SQL Warehouses
medium
Question 2 of 40

An analyst needs to create a view in Databricks SQL that aggregates sales data by region. Other analysts on the team should be able to query this view. Which SQL statement correctly creates a named, persistent view in Unity Catalog?

ACREATE TEMP VIEW sales_by_region AS SELECT region, SUM(amount) FROM sales GROUP BY region
BCREATE VIEW main.analytics.sales_by_region AS SELECT region, SUM(amount) FROM sales GROUP BY region
CCREATE MATERIALIZED VIEW sales_by_region STORED AS PARQUET AS SELECT region, SUM(amount) FROM sales GROUP BY region
DCREATE OR REPLACE STREAM VIEW sales_by_region AS SELECT region, SUM(amount) FROM sales GROUP BY region

Educational Content — CertQnA practice questions are written against official exam objectives, covering the same domains tested on the real exam. All content is original and independent — not actual exam questions, not affiliated with any certification vendor. Learn more about our content policy

Discussion

Be the first to share your understanding of this concept

⚠️ Discussion is for concept clarification only. Do not share or request actual exam questions or answers.

Sign in to join the discussion