select ims_md_id
from ims_md_general
where ims_md_id = :ims_md_id
update ims_md_general
set agg_level_v = :agg_level_v,
agg_level_s = :agg_level_s
where ims_md_id = :ims_md_id
insert into ims_md_general
(ims_md_id, agg_level_v, agg_level_s)
values
(:ims_md_id, :agg_level_v, :agg_level_s)
select agg_level_s, agg_level_v, ims_md_id
from ims_md_general
where ims_md_id = :ims_md_id