QuestionQ67

VerifiedDeveloping Code for Data Processing using Python and SQL

A table is registered using the following code:

Question Image

Both users and orders are Delta Lake tables. Which statement characterizes the results of querying recent_orders?

Explanation

CREATE TABLE ... AS SELECT materializes the query output when the table is created. The join result is stored as the new managed table’s data and is returned by later queries; it is not a view or an automatically refreshing cache of the source Delta tables. Databricks documents CREATE TABLE as supporting tables derived from a query, and records CTAS as a write operation.

Learn more

Community Discussion

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