Answer using "not in"


  • 0
    select max(Salary) as SecondHighestSalary
    from Employee
    where Salary not in (select MAX(Salary) from Employee);
    

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.