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 memory optimized?
What is pl/sql table? Why it is used?
Why plvtab is considered as the easiest way to access the pl/sql table?
What is t sql used for?
Explain dml and ddl?
What is an index? What are the types of indexes? How many clustered indexes can be created on a table?
How do you write a subquery?
what is the different between now() and current_date()? : Sql dba
What is data type in sql?
what is normalization? : Sql dba
How do I start sql profiler?
how to install mysql? : Sql dba
what is a database lock ? : Sql dba
What are stored procedures used for?
How do I find duplicates in sql?