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
Is insert autocommit in oracle?
What are the varoius components of physical database structure of oracle database?
How to get execution path reports on query statements?
Explain the use of grant option in imp command.
You have 4 instances running on the same UNIX box. How can you determine which shared memory and semaphores are associated with which instance?
How to assign values to data fields in record variables?
Explain the use of consistent option in exp command.
How do I start tns listener?
How to create an initialization parameter file?
In Oracle Applications We are Using Sub Ledger Accounting. When we Transfer the Data all modules (AP,AR,CE,FA) to SLA We done Some customizations? What are They??
normally database take to refresh time 2 hours. but client asked iwant to refresh with in 5 min that same database. do you have any option in BO and Oracle? explain me briefly...kavi
What are temporal data types in oracle?
How to concatenate two text values in oracle?
Explain a data segment?
Explain the types of exception?