Which of the following commands can be used to write data into a Delta table while avoiding the writing of duplicate records?
Which of the following commands can be used to write data into a Delta table while avoiding the writing of duplicate records?
The correct command to use for writing data into a Delta table while avoiding the writing of duplicate records is MERGE. The MERGE command in Delta Lake allows you to perform an 'upsert' operation (a combination of update and insert), which inserts new records if they do not exist and updates existing records based on a specified condition. This ensures that duplicates are avoided and data integrity is maintained when adding new data to the table.
C. MERGE The MERGE command is used to write data into a Delta table while avoiding the writing of duplicate records. It allows you to perform an "upsert" operation, which means that it will insert new records and update existing records in the Delta table based on a specified condition. This helps maintain data integrity and avoid duplicates when adding new data to the table.
la unica opcion posible
Respuesta correcta C A) DROP: Elimina registros, B) IGNORE : NO existe C) MERGE: EN base a la data, registra, actualiza o elimina registros, D) NO existe E) Solo inserta
MERGE INTO is the one to choose if you want to avoid duplicates.
C. MERGE To write data into a Delta table while avoiding the writing of duplicate records, you can use the MERGE command. The MERGE command in Delta Lake allows you to combine the ability to insert new records and update existing records in a single atomic operation. The MERGE command compares the data being written with the existing data in the Delta table based on specified matching criteria, typically using a primary key or unique identifier. It then performs conditional actions, such as inserting new records or updating existing records, depending on the comparison results. By using the MERGE command, you can handle the prevention of duplicate records in a more controlled and efficient manner. It allows you to synchronize and reconcile data from different sources while avoiding duplication and ensuring data integrity. Therefore, option C, MERGE, is the correct command to use when writing data into a Delta table while avoiding the writing of duplicate records.
Answer is C. AS DROP is used to remove a table or database IGNORE is used to skip errors while executing a query. INSERT will add new records but will not avoid duplication so Merge is right answer
Ans - C https://docs.databricks.com/sql/language-manual/delta-merge-into.html
C is the right answer
C merge
Correct answer is C
C is correct
Merge is correct
Merge is correct
Merge will avoid duplicates by comparing the results based on primary key columns
Option C
Wrong answer. The correct answer is D.
'C' is a correct answer. https://docs.databricks.com/sql/language-manual/delta-merge-into.html
Thanks for the clarification