select min(sal) from emp where sal (select sal from emp where sal<>MIN(SAL) ) ORselect min(sal) from emp where sal (select sal from emp having sal<>MIN(SAL) ) May this will help you.I have not tested it in SQL and I am also not sure that the syntax is exactly right .may be you need to do same changes
select min(sal) from emp where sal (select sal from emp where sal<>MIN(SAL) ) OR select min(sal) from emp where sal (select sal from emp having sal<>MIN(SAL) ) May this will help you.I have not tested it in SQL and I am also not sure that the syntax is exactly right .may be you need to do same changes