I am having issues updating two tables using a sub-query in the same query. This is part of a course project and it has to include both of those statements. I understand how sub-queries work and I am able to update the two tables at once, however it is still giving me this error when I try to incorporate the sub-query.
I have looked online and the only fix that I can find is to assign the fields an alias to avoid the ambiguous error. However I am not sure how to assign it in the update statement.
update item, shipment
set item.price = 6.99,
shipment.price = 6.99
where price like(
select price
from item
join shipment on item.ship_id = shipment.ship_id
where item_num = "android543");
I understand that this is ambiguous I am just not sure how to assign the values an alias.