-
Duplicate Rows
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|