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
List down the data types in the db2 database.
On which levels locks can be applied?
What is plan in cobol db2?
How does coalesce work?
How would you find out the total number of rows in a db2 table?
What are the various isolation levels possible?
Mention the various locks that are available in db2.
While unloading huge amount of data from table. Suddenly job failed some error. Imagine 1M data unloading, In that 90% data unloaded only 10% left, So if want to unload the rest 10% what needs to be done? Whether do i need to start from top or anything ?
What is host variable in db2 cobol?
How to find schema of a table in db2?
What is universal database?
What do you mean by between and in? Is between inclusive of specified range values?
What is the syntax for FETCH in DB2 ?
What language is db2 written in?
What is isolation level in db2?