There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........
Answer Posted / nagireddy
select max(sal) from emp a where 5=(select count(distinct sal)
from emp b where a.sal<=b.sal);
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
What is runstats and reorg in db2?
What is dbrm? What it contains?
Mention the different locking levels that are available in db2.
What are the rules for db2 programming?
Explain package in db2 and its advantages?
What is rebind in db2?
What is the use of commit in db2?
How do you stop a db2 database in linux?
How to resolve deadlock issue
What is the difference between using bind () and rebind () methods of naming class?
Where do you specify them?
What is the maximum number of columns in a db2 table?
What is an instance database?
Why cursor is used in db2?
How do I delete a column in db2?