I have three tables orders
, customer_old
and customer_new
.
- The
orders
table contains theold_user_login
and associated order number. - The
customer_old
table contains the information on customer, namelyold_user_login
anduser_fullname
. - The
customer_new
table containsnew_user_login
anduser_fullname
.
The idea is to replace the old_user_login
with new_user_login
for all the rows in the orders
table, and the only thing that matches is the user_fullname
in the two customer tables. The old customer table will effectively be made redundant and deleted after this operation is done.
How do I go about doing this?