Consider the table employee (empId, name, department, salary) and the two queries Q1, Q2 below. Assuming that department 5 has more than one employee, and we want to find the employees who get higher salary in department 5, which one of the statements is TRUE for any arbitrary employee table? Q1 : Select e. empId From employee Where not exists (Select * From employee s where s. department = “5” and s. salary > = e. salary) Q2 : Select e. empId From employee e Where e. salary > any (select distinct salary From employee s where s. Where s. department = “5”)
Reveal answer
Fill a bubble to check yourself
