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
What is null value in db2?
What is ibm db2 used for?
What does reorg do in db2?
What is db2 catalog database?
What is the default page size of buffer pools?
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 .....
What is copy pending status in db2?
What is the maximum number of columns in a db2 table?
How do I import a csv file into db2?
What is rebind in db2?
List out the three types of page locks that can be held.
What is the difference between using bind () and rebind () methods of naming class?
When the like statement is used?
What is ibm db2 connect?
How do I add a column in db2?