Question: Consider a database with two tables: 'Employees' ( columns: 'EmpID', 'Name', 'Department', 'Salary' ) and 'Departments' ( columns: 'DeptID', 'DeptName', 'ManagerID' ) . You need
Consider a database with two tables: 'Employees' columns: 'EmpID', 'Name', 'Department', 'Salary' and 'Departments' columns: 'DeptID', 'DeptName', 'ManagerID' You need to update the 'Salary' of all employees by who work under a manager whose salary is greater than $ Which of the following SQL queries correctly performs this operation?
Group of answer choices
UPDATE Employees SET Salary Salary WHERE EXISTS SELECT FROM Departments WHERE ManagerID EmpID AND Salary
UPDATE Employees E SET ESalary ESalary FROM Departments D WHERE EDepartment DDeptName AND DManagerID IN SELECT EmpID FROM Employees WHERE Salary
UPDATE Employees SET Salary Salary WHERE EmpID IN SELECT ManagerID FROM Departments WHERE Salary
UPDATE Employees SET Salary Salary WHERE Department IN SELECT DeptName FROM Departments WHERE ManagerID IN SELECT EmpID FROM Employees WHERE Salary
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
