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
List out the types of joins.
How would you configure your networking files to connect to a database by the name of DSS which resides in domain icallinc.com?
How to convert a date to char in oracle? Give one example.
How to connect asp pages to oracle servers?
How to create a table in a specific tablespace?
Can a formula column be obtained through a select statement ?
Can multiple columns be used in group by in oracle?
What is the difference between view and materialized view in Oracle?
Explain the different normalization forms?
What is a proxy class?
Difference between varchar and varchar2 data types?
How many types of auditing in Oracle?
What are the components of logical database structure in oracle database?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
How to convert a string to a date in oracle database?