SQL Language (MOSC)

MOSC Banner

how can i delete duplicated records having the same email address ?

in SQL Language (MOSC) 7 commentsAnswered

I tried to delete the duplicated files using the below query but it throws an error code.

Error code "Explain plan cannot be retrieved - Internal error occurred while processing the query, please contact support team."


LOOP

DELETE FROM "DEVELOPMENT_LIST"

WHERE ROWID IN (SELECT MIN (ROWID)

FROM "DEVELOPMENT_LIST"

GROUP BY EMAIL_ADDRESS_

HAVING COUNT (*) > 1);

EXIT WHEN SQL%NOTFOUND;

END LOOP;

COMMIT;

END;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center