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

What are the properties of a transaction?

572


What are the types of triggers in sql?

503


Does sql backup shrink transaction log?

559


What are the ddl commands?

539


Is primary key clustered or nonclustered?

568






What is sql profiler in oracle?

568


Name the operator which is used in the query for pattern matching?

507


Explain spool.

691


What is the requirement of self-join?

546


What are aggregate functions in sql?

633


Why functions are used in sql?

515


How to use boolean type in select statement?

585


How to rename a column in the output of sql query?

539


What is crud stand for?

570


What does partition by mean in sql?

515