Tabel A:
Id |sku |Country |pricecountry
1 b1 Netherlands *null*
Table B:
sku |Germany |France |Netherlands
b1 3,88 7,55 6,14
The goal is to update column pricecountry in Table A with sku1. In this case it should be 6,14
I think something like this but don't know..
UPDATE tableA as a SET
a.pricecountry = ( select column(a.country)
FROM tableB as b
WHERE a.sku = b.sku and
column(a.country)
);