
Databricks Certified Data Engineer - Associate
Get started today
Ultimate access to all questions.
Which Databricks statement enables insert, update, and delete operations to be executed as a single atomic transaction on a Delta table?
Which Databricks statement enables insert, update, and delete operations to be executed as a single atomic transaction on a Delta table?
Explanation:
The MERGE
operation in Databricks allows for updates, inserts, and deletes to be performed as a single atomic transaction on a Delta table. It supports upserting data from a source table, view, or DataFrame into a target Delta table, with the ability to add multiple conditionals beyond just matching fields. This operation offers extensive options for custom logic implementation, provided the schema of new records matches that of the existing records. Other operations like UPDATE
, INSERT INTO
, and DELETE
are limited to their respective functionalities and do not offer the combined transactional capability of MERGE
.