I have problem with this syntax, here is my SQL Server query.
I want to set null to functloc
column based on column supereq
where system status='esto'
update ih08pkgmf as t1,
(select Equipment, `System status`, `Functional loc.`
from ih08pkgmf
where `System status` = 'ESTO'
and `Superord.Equip.` is null) as t2
set t1.`System status` = t2.`System status`,
t1.`Functional loc.` = t2.`Functional loc.`
where
t1.`Superord.Equip.` = t2.Equipment`
Expected result is, all the equipment column where system='aseq'
based on supereq system status='esto'
the functloc
is null