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
What are the full forms of spufi and dclgen and why are they used?
Define declaration generator (dclgen).
What action db2 takes when a program aborts in the middle of a transaction?
What is runstats and reorg in db2?
I HAVE 500 ROW TO UPDATE I WOULD LIKE TO USE ROLLBACK ALONG WITH COMMIT.WHAT IS THE SYNTAX TO CODE COMMIT AND ROLLBACK FOR EVERY 100 ROWS.AND HOW THE CURSOR ROLLBACK TO THE LAST COMMITTING POINT.
What is the use of reorg in db2?
what is diffrence b/w file-aid tool and file-aid utility???
B37 abend during spufi?
SQLCODE = -199, ERROR: ILLEGAL USE OF KEYWORD CHAR, TOKEN KEY was expected
What is load utility in db2?
Explain the function done by data manager?
Where do you specify them?
What is an instance in db2?
What is dbrm? What it contains? When it will be created?
What is a collection in db2?