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 db2 optimizer?
What is explain in db2?
What is universal database?
What does reorg do in db2?
How can you quickly find out the # of rows updated after an update statement?
What is db2 connect?
How do I import a csv file into db2?
What is node in db2?
What is db2 look?
What are the bind parameters ibm db2?
What is declare cursor?
Mention some fields that are a part of sqlca.
What are union and union all?
What are db2 objects?
What is bind plan?