✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Employee (EmployeeID, FirstName, LastName, Email, Phone, HireDate, Salary, #DepartmentID)Department (DepartmentID, DepartmentName, #ManagerID)Project (ProjectID, ProjectName, StartDate, EndDate, Budget)Employee_Project (#EmployeeID, #ProjectID, Role, AssignmentDate)
Which query selects employees whose salary is greater than all employees in department 2?A) SELECT * FROM Employee WHERE Salary > ALL (SELECT Salary FROM Employee WHERE DepartmentID = 2);B) SELECT * FROM Employee WHERE Salary > (SELECT Salary FROM Employee WHERE DepartmentID = 2);C) SELECT * FROM Employee WHERE Salary > ANY (SELECT Salary FROM Employee WHERE DepartmentID = 2);D) SELECT * FROM Employee WHERE Salary IN (SELECT Salary FROM Employee WHERE DepartmentID = 2);