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 is difference between stored procedures and application procedures?
Why is a primary key important?
What is faster join or subquery?
Can we use pl sql in mysql?
What is benefit of creating memory optimized table?
Can we perform dml on view?
What is an oracle stored procedure?
What are the disadvantages of file system?
how can we know the count/number of elements of an array? : Sql dba
Is left join faster than inner join?
How can you fetch common records from two tables?
Which one is better sql or oracle?
what are date and time functions in mysql? : Sql dba
how to convert character strings to numeric values? : Sql dba
Can a select statement fire a trigger?