Is there any predefined function or method available to get the second highest salary from an employee table?
Try this:
SELECT * FROM employee emp WHERE 2=(SELECT COUNT(*) FROM employee WHERE salary >= emp.salary);