Re: Deleting duplicates
From: John Homeyard <homeyard_at_worldnet.att.net>
Date: 1996/06/20
Message-ID: <4qbpbr$rh9_at_mtinsc01-mgt.ops.worldnet.att.net>#1/1
Date: 1996/06/20
Message-ID: <4qbpbr$rh9_at_mtinsc01-mgt.ops.worldnet.att.net>#1/1
Another method you may consider is:
This will identify the duplicates,
select column
from table alias
where rowid > (select min (rowid)
from table where column = alias.column);
This will delete the duplicates,
delete from table alias
where rowid > (select min (rowid) from table where column = alias.column);
Avoid future duplicate row insertion by placing a primary key constraint on the table. Received on Thu Jun 20 1996 - 00:00:00 CEST