How can you split a table in to exactly half?

Answer Posted / nirmal khatri

Hi

We can do it by SQL also, below is SQL which is working on
iSeries(AS/400)

insert into nk11581/temp1 (select * from nk11581/temp1
where rrn(temp1) in(
SELECT distinct dec((rrn(temp1)/2)) FROM nk11581/temp1
))

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is db2 stogroup?

673


What is runstats and reorg in db2?

790


What is catalog database in db2?

639


When the like statement is used?

630


What is a Foreign Key?

653






How does a cursor work?

554


What is data manager?

603


What is the use of commit in db2?

628


How do you simulate the explain of an embedded sql statement in spufi/qmf?

631


Explain about dbrm.

603


what is the sqlcode -501

11278


How to take backup of table in db2?

595


What is the role of union all and union

646


What kind of database is db2?

565


What is the role of the data page in the db2 database?

583