Professional Documents
Culture Documents
DML
DML
update departments
set location_id = (select location_id from locations
where country_id = 'CN')
where department_name = 'IT';
update departments
set manager_id = (select employee_id from employees where manager_id = (select
employee_id from employees where last_name = 'Hunold')
and hire_date = (select min(hire_date) from employees where manager_id = (select
employee_id from employees where last_name = 'Hunold')))
where manager_id = (select employee_id from employees where last_name =
'Hunold');
096.- DELETE: Subquery values