Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

List out the buffer pools in db2

1080


What is the reason behind not using select * in embedded sql programs?

1124


What is bufferpool in db2?

1059


Where do you specify them?

1292


what is the sqlcode -501

13173


What is scrollable cursor in db2?

1059


Which component is responsible for db2 startup and shutdown?

1043


What is declare cursor?

1128


When the like statement is used?

1230


How do you concatenate the firstname and lastname from emp table to give a complete name?

1077


How to restart a DB2 program?

1912


How to run db2 command in windows?

1204


What happens in bind step in a db2 program?

978


What is the physical storage length of time data type?

1137


What are the uses of db2 optimizer?

1301