find out the third highest salary?
Answer Posted / haneef
Best One
select top 1 * from test_emp where sal in (select top 3 sal
from test_emp order by sal desc) order by sal asc
or
It also work
select top 1 * from test_emp where sal in (select top 3 sal
from test_emp order by sal desc) order by sal asc
select top 1 MAX(sal),id from test_emp where sal < (select
max(sal) from test_emp where sal < (select max(sal) from
test_emp))
group by id,sal order by sal desc
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What is an oracle wallet?
Explain oracle data types with examples?
How to retrieve data from an cursor to a record?
What is ADDM Advisor in Oracle?
What is the difference between hot backup and cold backup in oracle?
How to write text literals in oracle?
Why is oracle used?
What is a oracle database?
What are the differences between char and nchar in oracle?
What are temporal data types in oracle?
How to create an oracle database manually?
What is the string concatenation operator in oracle?
what are bitmap indexes? How does they work?
How to create a new table in oracle?
How to retrieve the count of updated rows?