I would like to update the values of “area” variable according to the new values of table B
my try:
update a set area=(select area from b)
where a.id=b.id
table A
Id area
1 N
2 S
3 W
4 W
5 E
table B
Id area
1 W
2 E