2. maksymalne zapytanie o wynagrodzenie w 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);