what is logic behind deletion of duplicate rows? I got know this is the query which is used to delete duplicate rows.
delete from tvsemp e where rowid>(select min(rowid) from tvsemp m where e.ename=m.ename);
Here when I divided the subquery i.e first select min(m.rowid) from tvsemp e, tvsemp m where e.ename=m.ename;
Then I get result as the rowid is
MIN(M.ROWID)
___________________
AAAEDUAABAAAKiqAAP
Then for the outer query select ename from tvsemp emp where rowid>'AAAEDUAABAAAKiqAAP'
But for this I am getting n-1 results(except the one which I eliminated using '>' sin)
My doubt is if this two are combined I am getting exact table without duplicate why is this?