find out the third highest salary?
Answer Posted / venkatranjith e
Hi All,
This query will give you the o/p.
Select * from EMP A where &n= (select count (distinct
(sal)) from EMP B where B.sal>A.sal)
n = 3 , to display 3rd largest salary.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What happens if the imported table already exists?
How to use subqueries in the from clause in oracle?
Why oracle is used?
How to define an anonymous procedure without variables?
Difference between varchar and varchar2 data types?
Can we use bind variables in oracle stored procedure?
Explain the use of analyse option in exp command.
What is integrity and what is constraint??Explain with example
How to convert a string to a date in oracle database?
15. Display the item_cost and then truncate it to the nearest hundred, ten, unit, tenth and hundredth.
How can you merge two tables in oracle?
How to delete a column in an existing table in oracle?
Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?
Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.
What is a proxy class?