Опитайте следното: update boat b, (select avg(length) avg_len from boat) v set b.rellength = v.avg_len