How can you split a table in to exactly half?
Answer Posted / kumar
Hi ............
try this one ....might be a logical one ... but have to
give customers what they want.....
Select count(*) into :ws-count from emp with ur;
Declare CURSOR cursor1 for
Select *(if possible better code all fields)
from emp where count(*) < :ws-count;
Open cursor
Fetch cursor.
Declare CURSOR cursor2 for
Select *(if possible better code all fields)
from emp where
count(*) >= :ws-
count;
Open cursor
Fetch cursor.
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Explain the contents that are a part of dclgen.
What db2 400?
Which component is responsible for processing sql statements and selecting access paths?
How to check table size in db2 sap?
Define sqlca.
What is the purpose of using commit?
What is the physical storage length of timestamp data type?
Is ibm db2 open source?
What does db2 plan contain?
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 cursor stability and repeatable read isolation levels?
What is db2 optimizer?
What is the reason behind not using select * in embedded sql programs?
What are the bind parameters ibm db2?
What's The Percentage Free Space ?