I want to fetch second highest paid employee salary from each department using SQL. Example, I've 100 departments with more than 500 employees in each department. & all these data is in one table.
Table Columns: EmpNo, EmpFirstName, EmpLastName, DepartmentNo, DepartmentName, Salary
Output: EmpNo, EmpFirstName, EmpLastName, DepartmentName, Salary