From an Employee table, I'm trying to get the second highest salary only. The Employee table has a PK id and a salary column.
Select salary as SecondHighestSalary
From Employee
where id not in (
Select id from Employee
Order By salary desc
limit 1
)
Order By salary desc
limit 1
It's returning: This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'