| View previous topic :: View next topic |
| Author |
Message |
mf_user Intermediate

Joined: 01 Jun 2003 Posts: 372 Topics: 105
|
Posted: Thu Nov 22, 2007 7:26 am Post subject: delete duplicate rows. |
|
|
Hi,
There is a DB2 table which does not have any primary or foreign key.
There are duplicate rows in the table. Is it possible to retain one among them and delete the other duplicates by SQL queries?
Or
Should this be handled programatically using Cursors?
Please help.
Thanks. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
== |
|
| Back to top |
|
 |
videlord Beginner
Joined: 09 Dec 2004 Posts: 147 Topics: 19
|
Posted: Thu Nov 22, 2007 2:47 pm Post subject: |
|
|
use some tool, it's a easy task
e.g.
unload data, DFSORT remove duplication, load back |
|
| Back to top |
|
 |
mf_user Intermediate

Joined: 01 Jun 2003 Posts: 372 Topics: 105
|
Posted: Fri Nov 23, 2007 7:07 am Post subject: |
|
|
videlord, Thank you for giving alterantive solution. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
== |
|
| Back to top |
|
 |
vkphani Intermediate

Joined: 05 Sep 2003 Posts: 483 Topics: 48
|
|
| Back to top |
|
 |
mf_user Intermediate

Joined: 01 Jun 2003 Posts: 372 Topics: 105
|
Posted: Mon Nov 26, 2007 5:38 am Post subject: |
|
|
wow. Thanks to vkphani & kolusu. It is very useful to me. _________________ MF
==
Any training that does not include the emotions, mind and body is incomplete; knowledge fades without feeling.
== |
|
| Back to top |
|
 |
|
|
|