1. Getting highest salary from Employee table?
Select max(sal) from emp;
2. Find the second highest salary :
Select max(sal) from emp where sal < (Select max(sal) from emp);
3. Find the Third highest salary :
Select max(sal) from emp where sal < (Select max(sal) from emp where sal <
(Select max(sal) from emp ));