
Ultimate access to all questions.
Which command can be used to write data into a Delta table while avoiding the writing of duplicate records?
A
DROP
B
INSERT
C
MERGE
D
APPEND
Explanation:
The MERGE command (also known as UPSERT) is used to write data into a Delta table while avoiding duplicate records. It allows you to:
This is particularly useful for:
Other options:
The MERGE command uses a source table/view and a target table, and performs conditional updates/inserts based on matching criteria, making it ideal for avoiding duplicate records.