delete from scott.emp where empno in
(
select empno from scott.emp
group by empno
having (count(empno)>1)
)


but the query will delete all duplicate entries in a table with out keeping one copy

As per my knowledge,There is no option to delete duplicate rows with out rowid

Source: http://www.oraclepassport.com/forums/index.php/topic,392.0.html

Feedback awaiting moderation

This post has 1 feedback awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)