Question: I need help with this using ORACLE SQL Developer You need to find out all the employees who have salary lesser than the salary of

I need help with this using ORACLE SQL Developer

You need to find out all the employees who have salary lesser than the salary of all the employees in the department 10. Which of the following queries will give you the required output?

  1. SELECT employee_id, salary FROM employees WHERE salary > ALL(SELECT salary FROM employees WHERE department_id =10);
  2. SELECT employee_id, salary FROM employees WHERE salary < ANY(SELECT salary FROM employees WHERE department_id =10);
  3. SELECT employee_id, salary FROM employees WHERE salary = ALL(SELECT salary FROM employees WHERE department_id =10);
  4. SELECT employee_id, salary FROM employees WHERE salary

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!