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

Can multiple cursors being opened at the same time?

614


What is the difference between formal parameters and actual parameters?

543


What are the different pseudo commands? Explain in general?

539


What is the difference between a user and a schema in oracle?

560


what happened to the global index when I truncate the data in one of the partition?

1518






What is oracle server autotrace in oracle?

614


Why is oracle used?

557


How to omit columns with default values in insert statement in oracle?

579


What are the common oracle dba tasks?

625


How to export your connection information to a file?

595


How to use "while" statements in oracle?

735


What is private procedure oracle?

529


There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??

1614


State all possible different index configurations a table can possibly have?

564


What is a synonym? What are its various types?

622