I searched on the internet but could not find any explanation for my question below. The following code is not working when I try to remove duplicate rows from a test table. The test table has no unique or primary keys on it, and is defined as test(id number). Can you explain me why it is not working?
delete from test a
where a.rowid in (select b.rowid
from test b
where b.id = a.id
and b.rowid != a.rowid);