Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL UPDATE of one table based on values of another table -- is it possible?

Re: SQL UPDATE of one table based on values of another table -- is it possible?

From: narayan <narayan_raykarNOnaSPAM_at_engineer.com.invalid>
Date: Wed, 17 Nov 1999 23:14:22 -0800
Message-ID: <18489d36.a3bed849@usw-ex0106-044.remarq.com>


CONSIDER u have 2 tables
1.emp(empno,ename,job,sal,deptno)
2.dept(deptno,dname,loc)
u could use

update emp
set deptno=(select deptno from dept where loc='SDGFS') WHERE job='dfgdg'

try this out
bye
narayan

Received on Thu Nov 18 1999 - 01:14:22 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US