Detect changes during merge operation on DB

Hello,

I would like to MERGE new updates into an existing table and update a timestamp if one of the set fields actually changes a value. If a record has been updated based on the matching fields but no value has changed, there would be no timestamp update.

Is there a nice and simple way to do it?

Thanks in advance for your help.