{"id":1953,"date":"2013-06-08T13:18:08","date_gmt":"2013-06-08T13:18:08","guid":{"rendered":"http:\/\/www.withdata.com\/ad\/?p=1953"},"modified":"2017-04-20T11:15:57","modified_gmt":"2017-04-20T11:15:57","slug":"remove-duplicate-rows-in-oracle","status":"publish","type":"post","link":"https:\/\/www.withdata.com\/blog\/oracle\/remove-duplicate-rows-in-oracle.html","title":{"rendered":"Remove duplicate rows in Oracle"},"content":{"rendered":"<p>How to delete all duplicate rows and leave only one of them, in Oracle?<\/p>\n<pre>DELETE FROM my_table\r\nWHERE rowid not in\r\n(SELECT MIN(rowid)\r\nFROM my_table\r\nGROUP BY column1, column2, column3...) ;<\/pre>\n<p>Where column1, column2, etc. is the key you want to use.<\/p>\n<p>Relative links:<\/p>\n<h2><a title=\"Permalink to Remove duplicate rows in MySQL\" href=\"https:\/\/www.withdata.com\/blog\/mysql\/remove-duplicate-rows-in-mysql.html\" rel=\"bookmark\">Remove duplicate rows in MySQL<\/a><\/h2>\n<h2><a title=\"Permalink to Remove duplicate rows in SQL Server\" href=\"https:\/\/www.withdata.com\/blog\/sql-server\/remove-duplicate-rows-from-sql-server-table.html\" rel=\"bookmark\">Remove duplicate rows in SQL Server<\/a><\/h2>\n<p>Some Oracle tools you can try: <a href=\"https:\/\/www.withdata.com\/oracle\/\"> https:\/\/www.withdata.com\/oracle\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to delete all duplicate rows and leave only one of them, in Oracle? DELETE FROM my_table WHERE rowid not in (SELECT MIN(rowid) FROM my_table GROUP BY column1, column2, column3&#8230;) ; Where column1, column2, etc. is the key you want to use. Relative links: Remove duplicate rows in MySQL Remove duplicate rows in SQL Server [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[1325,234],"class_list":["post-1953","post","type-post","status-publish","format-standard","hentry","category-oracle","tag-oracle","tag-remove-duplicate-rows"],"_links":{"self":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1953","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/comments?post=1953"}],"version-history":[{"count":4,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1953\/revisions"}],"predecessor-version":[{"id":6477,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/posts\/1953\/revisions\/6477"}],"wp:attachment":[{"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/media?parent=1953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/categories?post=1953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.withdata.com\/blog\/wp-json\/wp\/v2\/tags?post=1953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}