SELECT e.emp_no,s.salary,e.last_name,e.first_name
FROM employees e INNER JOIN salaries s on e.emp_no=s.emp_no
WHERE salary =
(
select max(salary) from salaries
where salary != (select max(salary) from salaries)
);
SELECT e.emp_no,s.salary,e.last_name,e.first_name
FROM employees e INNER JOIN salaries s on e.emp_no=s.emp_no
WHERE salary =
(
select max(salary) from salaries
where salary != (select max(salary) from salaries)
);