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' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -