find out the third highest salary?
Answer Posted / amrish singh
this is the query for retrieving nth highest salary from
table emp
select e.sal
from emp e
where n-1=(select count(*) from emp s where s.sal>e.sal)
putting the value of n we get the required result.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How to handle a single quote in oracle sql?
How to install oracle database 10g xe?
What is the use of oracle?
How to view the data files in the current database?
What is the difference between Delete, Truncate and Drop in Oracle?
When do you get a .pll extension in oracle? Explain its importance
what are the default admin accounts in Oracle 10g ?
Describe an oracle table?
Explain the use of consistent option in exp command.
What is the max number of columns in an oracle table?
Explain oracle instance.
How to concatenate two text values in oracle?
What is oracle in java?
What is oracle datasource?
defination of bitmap index