2ª consulta de salário máximo em SQL
select *from employee
group by salary
order by salary desc limit 1,1;
Zealous Zebra
select *from employee
group by salary
order by salary desc limit 1,1;
SELECT MAX(SALARY) 'SECOND_MAX' FROM EMPLOYEES
WHERE SALARY <> (SELECT MAX(SALARY) FROM EMPLOYEES);