Answers for "sqlite update from select"

SQL
0

sqlite update where exists

UPDATE employees
SET hire_date = (SELECT departments.start_date
                 FROM departments
                 WHERE departments.department_id = employees.department_id
                 AND departments.department_name = 'HR')
WHERE EXISTS (SELECT *
              FROM departments
              WHERE departments.department_id = employees.department_id
              AND departments.department_name ='HR');
Posted by: Guest on August-14-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language