Question

Which of the following SQL queries is used to find the second highest salary from an employee table? SELECT MAX (salary)         FROM employee WHERE salary < ( SELECT MAX (salary) FROM employee);

A The query will return the second highest salary correctly.
B The query will return the highest salary instead of the second highest
C The query will cause an error because of the nested SELECT statement
D The query will return an empty result set
E The query will return multiple rows instead of one.
Practice Next

Hey! Ask a query