🔥 3-day streak
Databricks Certified Data Engineer Associate53 / 150
Question 53 of 150

A data engineer maintains a Silver Delta table `customers` and receives a daily source batch `updates` containing both new and existing customer records, keyed by `customer_id`. The requirement is: when a `customer_id` already exists in the target, update its `email` and `status` columns; when a `customer_id` does not exist in the target, insert the full new row. Which single Spark SQL statement correctly implements this in one pass?

Reviewed for accuracy · Report an issueNext question