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
Is ibm db2 free?
Which isolation level provides maximum concurrency?
can any one provide me the link for the db2 v7 & db2 v8 manual for Z/os? i need to know about the syntax of REORG in both versions & need to know the difference as well
How can deadlocks be resolved?
Can we update view in db2?
Define db2.
What is a db2 collection?
Explain in detail about buffer manager and its functionalities?
Is ibm db2 open source?
Define sqlca.
Can you use max on a char column?
Is db2 a database?
What is the use of value function?
How to execute stored procedure in db2 command editor?
How to retrieve rows from a db2 table in embedded sql?