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 is an index associated with a constraint?
How to loop through a cursor variable?
Explain the truncate in oracle?
Explain a segment?
How to use an explicit cursor without open statements?
What is the order of defining local variables and sub procedures/functions?
What are the oracle differences between nvl and coalesce
What is connection pool in oracle?
What is the maximum limit on the number of columns in a table?
How to run create database statement again?
What are the limitations oracle database 10g xe?
How to shutdown your 10g xe server?
What exactly do quotation marks around the table name do?
How to define a record variable to store a table row?
How to write a left outer join with the where clause in oracle?