find out the third highest salary?
Answer Posted / sudheer
Guys Few of you have submitted an optimal query.
select distinct sal from emp A where 3 = (select count(sal)
from emp B where a.sal > b.sal)
However the integer 3 will not give the third highest salary
as expected. Point should be noted that the row starts with
zero.
so the actual result will the fourth highest salary with the
above query.
| Is This Answer Correct ? | 7 Yes | 3 No |
Post New Answer View All Answers
What is a trace file and how is it created in oracle?
What is catalog in Oracle?
What are a cluster and non-cluster index?
How do I recompile a procedure in oracle?
What is an oracle and why it is used?
What is raw datatype?
What is program global area (pga) in oracle?
What is the implicit cursor in oracle?
How many types of cluster table in Oracle?
master table and child table performances and comparisons in Oracle ?
What is partitioned table in Oracle?
defination of bitmap index
How to use "in" parameter properly?
When do I need to use a semicolon vs a slash in oracle sql?
What is blob datatype?