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
How do you stop a db2 database in linux?
ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE
What is a db2 package?
Explain various types of locks in db2?
What is db2 command?
What does sqlcabc has?
How to restart a DB2 program?
What are the bind parameters ibm db2?
What is buffer pool and list some of them?
Explain in brief how does db2 determine what lock-size to use?
Is db2 a mainframe database?
What action db2 takes when a program aborts in the middle of a transaction?
Give a brief description of db2 isolation levels?
What is collection in db2 bind?
What is the difference between oracle and db2?