how to find the second highest salary from emp table?

Answer Posted / gourvendra singh

Please put the below query, u will get the second highest
salary of the table :---

select sal from(select sal from
(select distinct sal from emp order by sal desc)
where rownum<=2 order by sal asc)
where rownum=1;

Is This Answer Correct ?    488 Yes 264 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is normalization sql?

499


What does 0 mean in sql?

516


Explain the difference between sql and mysql.

548


What is ttitle and btitle?

563


How many types of indexes are there in sql?

523






What is a join query?

539


What is sql rowcount?

544


Can we commit in trigger?

533


Compare sql & pl/sql

596


define data blocks ? : Sql dba

531


how to do backup entire database? : Transact sql

598


What is the difference between explicit and implicit cursors in oracle?

496


What is %rowtype in pl sql?

503


How much does sql certification cost?

531


Is sql difficult?

733