Question: What does the below query return? SELECT MAX ( salary ) FROM Employee WHERE Salary NOT IN ( SELECT Max ( Salary ) FROM Employee

What does the below query return?
SELECT MAX(salary)
FROM Employee
WHERE Salary NOT IN (SELECT Max(Salary) FROM Employee);
Answer choices
Select only one option
The query will return the second highest salary value.
It will return all the salary values apart from the highest salary.
It will return the highest salary.
The query has an error as MAX is being used without including the HAVING clause.

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!