Skip to content
Advertisement

Oracle merge – unable to get stable set of rows after deleting duplicates

I have this query to merge data from the individuals2 table. I still get the “unable to get a stable set of rows” error after deleting all the full_name duplicates in individuals2. What am I missing?

Advertisement

Answer

Your problem might be in the lower(FULL_NAME)expression in the join condition.

It is not enough that FULL_NAME and DOB are unique in the table individuals2.

lower(FULL_NAME) and DOB must be unique

A small example

Remove one of the rows and it works

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement