find the third highest salary?

Answer Posted / yankee

select * from (select * from <table_name> order by salary
desc)where rownum<4

---this way u can get the record of the top 3 salaries and
easily filter out the 3rd positioned salary from there.

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many indexes can be created on a table in sql?

685


Does a user_objects view have an entry for a trigger?

760


What is rtm stands for?

746


What is substitution variable in pl sql?

693


What are the features of pl sql?

770






What is sqlerrm?

713


What is dba in sql? : SQL DBA

751


what is 'mysqlimport'? : Sql dba

725


how is exception handling handled in mysql? : Sql dba

769


What are the operators used in select statements?

773


How to fetch alternate records from a table?

865


What is difference between pl and sql?

713


How do I save a sql query?

735


How do I enable sql encryption?

715


Define commit, rollback and savepoint?

765