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

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -