update factory.an_turnover a
set
a.c_last_date = ( select max( bew_dat ) from factory.himtbw
where
tl_nr = a.tl_nr and
tl_fam = a.tl_fam and
tl_atn = a.tl_atn and
bew_art in ( 'PP', 'PV', 'PN' ) and
lag_ort not in ( '700', '701' )
)
;
commit;
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Thursday, January 18, 2018
ORACLE, SQL SERVER - Typical subselect
Typical SQL subselect for finding value:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment