Kueri Gaji Maks ke -2 di 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);