Quiz 6 Question 4 of 20

A nightly batch adds new inter-branch loan records to a Warehouse table, but some records represent updates to loans that were already loaded the previous night — for example, a loan's return date being filled in late. A straight INSERT would create duplicate rows for those loans. Which T-SQL approach correctly applies both new and updated records in a single operation?

Select an answer to reveal the explanation.

Motivation