find out the third highest salary?
Answer Posted / harmeet
Hi, this query will gives the third highest salary from table
select * from emp e
where 3 = (select count(sal) from emp
where e.sal < sal);
To dispay 5th highest salary, just change the number 3 to 5.
Like that we can find top N salaries.
I hope i'm not wrong.
Is This Answer Correct ? | 44 Yes | 16 No |
Post New Answer View All Answers
Explain what does a control file contain?
Explain the use of Merge statement in oracle 11g
How to update a table row with a record?
What is open database communication (odbc) in oracle?
What is oracle sid?
What is the fastest query method to fetch data from the table?
Give the different types of rollback segments.
Explain the use of ignore option in imp command.
Explain the use of record option in exp command.
Is it possible to split the print reviewer into more than one region ?
What is an oracle user role?
Design database draw er diagram for a certain scenario ?
Assuming that you are an End User How to find that in the payment Batch some of the Invoice was Missing To pay How to find That??
Explain the different normalization forms?
How do we represent comments in oracle?