In DB2, I have an update statement that would affect around 500 million rows. Here is the query:
UPDATE MY_SCHEMA.TABLE_A apc SET CODEID_A = (SELECT TABLE_B.CODEI