C. MERGE
The MERGE command allows you to perform upserts (update and insert) into a Delta table, effectively avoiding duplicates by updating existing records and inserting new ones as needed.
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.
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
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
upvoted 1 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
80370eb
3 months, 2 weeks agoBharaniRaj
6 months, 1 week agobenni_ale
7 months agoSerGrey
10 months, 3 weeks agoawofalus
1 year agoJ_1_2
1 year, 1 month agoDavidRou
1 year, 1 month agochris_mach
1 year, 1 month agoKalavathiP
1 year, 2 months agovctrhugo
1 year, 2 months agoAtnafu
1 year, 4 months agosoftthinkers
1 year, 6 months agoVarma_Saraswathula
1 year, 7 months agonaxacod574
1 year, 7 months agoXiltroX
1 year, 7 months agoOleskie
1 year, 7 months agoXiltroX
1 year, 7 months agoknivesz
1 year, 7 months agoknivesz
1 year, 7 months ago