UPDATE empdetails
SET location=
(SELECT
deptdetails.loc
FROM deptdetails
WHERE
deptdetails.deptno = empdetails.deptno
AND
deptdetails.deptno >10
)
WHERE EXISTS
(SELECT
deptdetails.LOC
FROM deptdetails
WHERE
deptdetails.deptno = empdetails.deptno
AND
deptdetails.deptno >10
);
No comments:
Post a Comment