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

Answer Posted / sachin

SELECT MAX(SALARY) FROM EMP WHERE SALARY <
(SELECT MAX(SALARY) FROM EMP WHERE SALARY <
(SELECT MAX(SALARY) FROM EMP WHERE SALARY <
(SELECT MAX(SALARY) FROM EMP WHERE SALARY <
(SELECT MAX(SALARY) FROM EMP WHERE SALARY ))))

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is schema the same as database?

631


What is db2 bind process?

757


What is a db2 collection?

606


What is the function of logging in the db2 database?

645


Which are the db2 tools to protect integrity of the database?

692






Explain about cursor stability?

623


What is ibm db2 client?

523


Explain about dbrm.

609


What is universal database?

619


How do I start db2 in windows?

567


What is explain plan in db2?

592


What are union and union all?

541


what is a corelated subquerry?

658


What is cascading rollback?

623


What is the physical storage length of time data type?

673