RSS:
Publications
Comments

How to delete duplicate records

delete from where rowid not in (
select min(rowid) from
group by );

delete from emp a where rowid >
any (select rowid from emp b where a.empid=b.empid);

delete from T t1 where t1.rowid >( select min(t2.rowID) from T t2
where t1.col1 = t2.col1 and t1.col2 = t2.col2);


Leave a Reply

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>