Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: UPDATE using multiple tables
> update tableA
> set date_reported = (select audit_date from tableB
> where tableB.skey_ref = tableA.skey)
where exists(select 1 from tableB
where tableB.skey_ref = tableA.skey)
Cheers
Serge
PS: Also look at MERGE
-- Serge Rielau DB2 SQL Compiler Development IBM Toronto LabReceived on Fri Apr 22 2005 - 17:11:01 CDT