There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........

Answer Posted / udhay

SELECT MAX(salary)
FROM employees
WHERE salary
NOT IN (SELECT TOP 4 salary FROM employees ORDER BY salary
DESC)

Is This Answer Correct ?    1 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is isolation level in db2?

577


What is meant by union and union all?

583


How to connect to db2 database from windows command line?

560


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

642


What is the maximum length of sqlca?

865






What are foreign keys in db2?

614


What is a db2 collection?

603


While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?

1816


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

1799


What is load replace in db2?

560


What is view db2?

622


What is copy pending and check pending in db2?

572


Why cursor is used in db2?

572


Mention the various locks that are available in db2.

614


Explain in brief how does db2 determine what lock-size to use?

589