GATEverse
← GATE CSE 2007

Q61

MCQ2 marks, −0.5

Consider the table employee(empId, name, department, salary) and the two queries Q1, Q2Q_1, \, Q_2 below. Assuming that department 55 has more than one employee, and we want to find the employees who get higher salary than anyone in the department 5,5, which one of the statements is TRUE for any arbitrary employee table? Q1:Q_1: Select e.empId From employee e Where not exists (Select * From employee s Where s.department = "5" and s.salary >= e.salary) Q2:Q_2: 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…