find out the third highest salary?

Answer Posted / brijesh

hi,

this query gives you the Nth highest salary, the trick is to
write (N-1) in the given place;

select salary from table as table1

where (n-1) =

(select count(salary) from table

where table1.salary<salary);

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

1623


How many file formats are supported to export data?

660


What are the limitations of check constraint?

573


What is parameterized cursor in oracle?

578


What is a procedure in oracle?

618






How to run create database statement?

579


How to convert raw data type into text in oracle? Explain

603


What is redo log?

623


Explain about functional dependency and its relation with table design?

554


How do I manually create a database in oracle?

548


What is SQL access advisor in Oracle?

632


Explain the importance of .pll extension in oracle?

555


How would you best determine why your MVIEW couldnt FAST REFRESH?

1438


What is a trigger and what are its types in oracle?

534


What is a trigger and what are its types?

615