I am currently learning SQL, I was trying to get the 2nd highest salary using the following code:
SELECT Name, Address, Salary
FROM Employees
ORDER BY Salary DESC
OFFSET 1 ROWS FETCH NEXT 1 ROWS ONLY;
This is the error that I am receiving: Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OFFSET 1 ROWS FETCH NEXT 1 ROWS ONLY' at line 4
I have read article online, but I still can't find what the error is.