update factory.an_plan a
set
a.sbj_id = ( select sbj_id from j_vad
where
vad_id = ( select vad_id from kuauko
where
bsg_nr = a.bsg_nr
)
)
where
a.c_period = pPeriod and
a.bsg_nr is not null;
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Showing posts with label sql server - update. Show all posts
Showing posts with label sql server - update. Show all posts
Tuesday, January 23, 2018
ORACLE, SQL SERVER - typical update with subselect
Subscribe to:
Posts (Atom)