1UPDATE employees
2SET hire_date = (SELECT departments.start_date
3 FROM departments
4 WHERE departments.department_id = employees.department_id
5 AND departments.department_name = 'HR')
6WHERE EXISTS (SELECT *
7 FROM departments
8 WHERE departments.department_id = employees.department_id
9 AND departments.department_name ='HR');