Hash Keys & Hash Diffs explained for Data Vault
Check the code in order to create the hash keys and hash diffs in the example + the merge clause to perform the cdc(change data capture)