Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: Remove duplicate data in Oracle DB
Basically
delete from table x
where x.rowid > (select min(y.rowid)
from table y where y.primary_key = x.primary_key)Could you please refrain as much as possible from crossposting to all Oracle newsgroups?
Hth,
Sybrand Bakker, Oracle DBA
Noira Hadi <r42317_at_email.sps.mot.com> wrote in message
news:38A8FEA1.35D33056_at_email.sps.mot.com...
> I have tables in Oracle database which I could not enforce primary key
> due to unavoidable situation. Because of this, I might see duplications
> of data row.
>
> I want to know if it is possible for me to remove the duplicate row(s)?
> Appreciate any reply, reference or any tool that I could use to overcome
> this situation.
>
> Thanks in advance.
>
> Best Regards,
> hadi
>
Received on Tue Feb 15 2000 - 00:00:00 CST
![]() |
![]() |