Hi,

I want to delete duplicate rows from a table using rownum.

If I use this command

Delete from mytable where rownum > 1 (to delete all rows except rownum = 1) nothing is getting deleted.(There are 2 similar rows in mytable)

But If I use following command

Delete from mytable where rownum < 2 then row with rownum = 1 is getting deleted.

A bit confused why the first sql is not working while the second sql is working fine.

Regards
Sudhakar