sql - Delete duplicate rows using Analytical functions -
can delete duplicate rows using analytical functions? mean using row_number()
or rank
or dense_rank() in sql query in oracle?
you can use row_number()
on partition of columns should unique you, e.g: row_number() on (partition column1, column2 order column1)
. every result has rownumber > 1 duplicate.
you can example return rowid's , delete them.
Comments
Post a Comment