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
How to use null as conditions in oracle?
What is the difference between sharding and partitioning?
What are oracle functions?
What are the differences between blob and clob in oracle?
what are actual and formal parameters?
State the difference along with examples between Oracle 9i, Oracle 10g and Oracle 11i.
What are ddl statements in oracle?
How to import one table back from a dump file?
How can we force the database to use the user specified rollback segment?
Name the three major set of files on disk that compose a database in Oracle?
What are group functions in oracle?
What do you mean by merge in oracle?
Explain view?
What is analyze command used for?
What is SQL Tuning Advisor in Oracle?