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
Can select statements be used on views in oracle?
How to create a new table in your schema?
Are truncate and delete commands same? If so why?
Why is oracle database so popular?
Explain table?
What is hash cluster in oracle?
How to assign values to variables?
How to bring a tablespace online?
HI, Please let me know the syllabus for Oracle OCA and OCP Certification
Give the various exception types.
How to drop an existing view in oracle?
What are the general rules on data consistency?
Hi Can any one tell me what are the API's used in requisition import.
Does facebook use oracle?
What is a sub query? Describe its types?