Mysql – Second Highest Salary not workin with ifnull()
Write a solution to find the second highest salary from the Employee table. If there is no second highest salary, return null. This is my code: select ifnull(x.salary,NULL) as SecondHighestSalary from( select *, dense_rank() over( order by salary) as rnk…