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

Popular posts from this blog

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -