There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........
Answer Posted / kasyapa
select * from emp A where 4 = (select count(*) from emp B
where A.sal<B.sal)
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How do we specify index to include or not during bind process.
How do I add a column in db2?
Where can you declare a cursor in a cobol-db2 program?
Who uses db2?
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
Explain in detail about buffer manager and its functionalities?
What is host variable in db2 cobol?
Differentiate between cs and rr isolation levels? Where do you specify them?
What is the use of with ur in db2?
How connect db2 database to datastage?
Discuss about db2 bind?
What is dclgen (declaration generator)?
How do I add a column to a table in db2?
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 the difference between plan and package in db2?