E.g.
update table1 set table1.a = x.a, table1.b = ...
from ...... inner join table99 x on x.id = .... and ...
inner join table1 on table1.id = .........
where x.f in (select f ....) and ...
Just mind the bold lettering, the rest is to show you can build complex queries this way.
No comments:
Post a Comment