Find out the 3rd highest salary?
Answer Posted / suba
(Instead of 3 we can find N highest value)
select min(sal) from emp e where 3>(select count(sal) from
emp where sal>e.sal);
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the difference between alter trigger and drop trigger statements?
What is pl sql quora?
how can we know the number of days between two given dates using mysql? : Sql dba
how many values can the set function of mysql take? : Sql dba
What is a pragma statement?
What does the argument [or replace] do?
How many columns should be in an index?
What is trigger price?
Which operator is used in query for pattern matching?
how to use case expression? : Sql dba
what are the nonstandard string types? : Sql dba
What is the primary use of normalization?
What is difference between stored procedure and trigger?
How does sql store data?
Why do we create stored procedures & functions in pl/sql and how are they different?