Uses oracle's built-in merge statement to handle inserts and updates in a single statement.