If get value in deleted but not in inserted, it's delete. Otherwise, is update.