Hi All,
My first thread to this sub-forum and first thread of this sub-forum
Here it is,
Am trying to delete duplicates from a table retaining just 1 duplicate value out of the duplicate records
for example : from n records of a table out of which x are duplicates, I want to remove x - 1 records retaining 1 record from the x duplicates
This is the query am using,
but I think this could still be optimized for this query really takes time for huge dumps.
DELETE FROM tableA
WHERE rowid not in
(SELECT MIN(rowid) FROM tableA GROUP BY column1)
Oracle 9i