Find out the 3rd highest salary?
Answer Posted / jeevitha
select distinct a.salfrom emp a where &n= (select count
(distinct(b.sal)from emp b where a.sal<= b.sal)
-----
enter the highest sal of n:2,3.....n
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What are sql functions? Describe in brief different types of sql functions?
What is the use of %rowtype?
What is cursor and its types?
Is there any restriction on the use of union in embedded sql?
What is sql profiling in oracle?
What is the difference between view and stored procedure?
What is the size of partition table?
Is sql injection illegal?
how to fetch common records from two tables? : Sql dba
what is a tablespace? : Sql dba
What is the cause of mutating table error and how can we solve it?
what are the 'mysql' command line arguments? : Sql dba
How to return multiple rows from the stored procedure?
Is it possible to read/write files to-and-from PL/SQL?
What are the dml statements?