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 do you mean by rollback?
Can you use max on a char column?
What is buffer pool in the db2 database?
What is coalesce in db2?
How do I delete a table in database?
What is the default page size of buffer pools?
Explain the function done by data manager?
What are db2 objects?
If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?
Mention the downsides of page level lock.
What does sqlcabc has?
What is the difference between spufi and qmf?
Mention data types used in db2 ?
How to find the maximum value in a column in the db2 database?
Explain the contention situations caused by locks?