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


Please Help Members By Posting Answers For Below Questions

What is load utility in db2?

668


How to create backup table in db2?

644


What is meant by dclgen?

618


can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well

1806


What parameters are used to control the free space in DB2?

642






Discuss about db2 bind?

673


Explain db2.

619


What is package in db2 mainframe?

559


What is an instance in db2?

563


What is the max length of sqlca?

767


Which is faster delete or truncate?

681


What is ibm db2 used for?

601


What are the uses of db2 optimizer?

817


How and when does the db2 enforces the unique key?

615


What action db2 takes when a program aborts in the middle of a transaction?

659