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

Answer Posted / pavan

try this one....


select * from emp where emp_Id = (select emp_Id from emp
order by sal)
and count(*) < 6;

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is null value in db2?

567


What is ibm db2 used for?

601


What does reorg do in db2?

578


What is db2 catalog database?

582


What is the default page size of buffer pools?

648






Hi Everyone... Under the Logical files, when am working on multiple rec format logical file, I have joined two pf's using the multiple record format logical file concept, but when i run queried the LF only the first mentioned pf records are reflecting and I am not able to see any of the field records specified under the second pf. Kindly let me know whats the reason behind this. Below is the str of LF., R rec PFILE(LOGICAA) CUSTNO CUSTNAME BILL K CUSTNO R rec1 PFILE(LOGICAA1) CUSTNO ADD K CUSTNO .....

1897


What is copy pending status in db2?

636


What is the maximum number of columns in a db2 table?

725


How do I import a csv file into db2?

560


What is rebind in db2?

576


List out the three types of page locks that can be held.

689


What is the difference between using bind () and rebind () methods of naming class?

795


When the like statement is used?

640


What is ibm db2 connect?

573


How do I add a column in db2?

592