There is a 5000 EMP in company.how we find out the 5th
highest getting salary employee outof 5000 employes........
Answer Posted / payel
SELECT * FROM STAFF AA
WHERE 5 = (SELECT COUNT (SALARY) FROM STAFF WHERE SALARY
<= AA.SALARY );
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
How to compare data between two tables in db2?
How to find the number of rows in db2 tables?
What is explain plan in db2?
Can you tell me how can you find out the # of rows updated after an update statement?
What is bind and rebind in db2?
How to view db2 table structure?
What is the physical storage length of timestamp data type?
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 .....
For a db2 column that is being defined as decimal (11, 2), discuss the cobol picture clause.
Comment whether dclgen is mandatorily used. If not, then what is the point of using it?
What is runstats db2?
Suppose pgm A calling Pgm B .Pgm B has some Db2 program. at the time of compilation should plan and package will be created for both A and B or only B? What is the concept?
Explain dclgen.
Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?
Why select is not preferred in embedded sql programs?