Как преобразовать следующую SQL инструкцию в инструкцию Update:
select
*
from
BomStructure BS
where
Component = '322058-000000'
and
exists
(
select
1
from
BomStructure
where
ParentPart = BS.ParentPart
and
Component = '322123-301200'
);
Я хочу
update
BomStructure BS
set
StructureOffDate = '2019-09-30'
where
Component = '322058-000000'
and
exists
(
select
1
from
BomStructure
where
ParentPart = BS.ParentPart
and
Component = '322123-301200'
);
Но мой синтаксис выше неверен. Пожалуйста, помогите.