Это будет примерно так:
update ic_mst_codedatedata c set
c.velocity = (select v.velocity
from ic_mst_velocity v
where v.whse = c.whse
and v.article = c.article
)
where exists (select null
from velocity v1
where v1.whse = c.whse
and v1.article = c.article
);
Или, используя merge
:
merge into ic_mst_codedatedata c
using (select v.velocity, v.whse, v.article
from ic_mst_velocity v
) x
on (x.whse = c.whse and
x.article = c.article
)
when matched then update set
c.velocity = x.velocity;