Use Triggers. Write an
Update/Delete trigger on the Dept table such that if there's any change to the deptnp column, it does an update of the emp table as well.
But it's usually not a good idea to keep updating/changing primary keys. The impact will felt only when the number of referenced records go up.