Q61
MCQ2 marks, −0.5Consider the table employee(empId, name, department, salary) and the two queries below. Assuming that department has more than one employee, and we want to find the employees who get higher salary than anyone in the department which one of the statements is TRUE for any arbitrary employee table? Select e.empId From employee e Where not exists (Select * From employee s Where s.department = "5" and s.salary >= e.salary) Select e.empId From employee e Where e.salary > Any (Select distinct salary From employee s Where s.department = "5")
Sign in to save attempts.
Loading…