Dette er en typisk MySQL-ting og kan normalt omgås ved at vælge fra den afledte tabel, dvs. i stedet for
FROM manager AS m2
brug
FROM (select * from manager) AS m2
Den komplette erklæring:
UPDATE manager
SET status = 'Y'
WHERE branch_id IN
(
select branch_id
FROM (select * from manager) AS m2
WHERE (branch_id, year) IN
(
SELECT branch_id, year
FROM branch_master
WHERE type = 'finance'
)
);