how to check the 3rd max salary from an employee table?

Answer Posted / arjun

select min(sal) from (select sal from (select distinct(sal)
from emp order by sal desc) where rownum<4)

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does sqlite need a server?

541


How many types of literals are available in pl sql?

516


How do you truncate?

507


What is denormalization in a database?

593


what is cursor. write example of it. What are the attributes of cursor.

747






What is sql select statement?

505


How do I turn a list into a table?

512


What is information schema in sql?

581


Can ddl statements be used in pl/sql?

595


Why function is used in sql?

522


Explain two easy sql optimizations.

604


How do I delete a trigger?

545


Explain how to use transactions efficiently : transact sql

529


Does oracle roll back the transaction on an error?

537


What is oracle sql called?

506