Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Compare rows in diffrent table
vikram morey wrote:
> Dear All
>
> I have a problem.
>
> I want to compare rows in the tables in my schema. If any two rows are
> identical by any combination in any given table, it should not allow
> me to delete the same.
>
> Can someone help me out, by giving a solurtion for that. I am thinking
> of writing a procedure using minus and union all, or writing a before
> delete trigger.
>
> Which will be better and how to do it.
>
> Thanks,
>
> Vikram
If two rows in the same table are identical you don't have a primary key constraint on the tables. Is that the case?
There have been numerous examples of deleting duplicate records in this group so far this year. Search the Google archives.
Daniel Morgan Received on Tue Jun 11 2002 - 10:04:09 CDT