QuestionQ120

VerifiedData Processing & Transformations

Which command can be used to write data into a Delta table while avoiding the writing of duplicate records?

Explanation

MERGE INTO matches incoming rows against existing rows on a key and conditionally updates, deletes, or inserts them, so records that already exist in the target table are not re-inserted as duplicates. INSERT and APPEND simply add rows unconditionally, which would create duplicates for records that were already loaded.

Community Discussion

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