Esto es solo un recordatorio para acordarme de como se actualiza una tabla partiendo de un join de dos tablas.
UPDATE homestead.contracts set contracts.billing_date = date_add(start_date, interval 14 day) where id in ( SELECT activos.id FROM ( SELECT * FROM homestead.contracts Where status = 'Activo' And billing_date Is NULL ) as activos JOIN (SELECT * FROM homestead.contracts where status = 'Inactivo') as inactivos on activos.client_id = inactivos.client_id )