Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • handling filenname with space Linux/Unix
  • Kernel Parameters for Solaris Linux/Unix
  • Facts about SCN and Rollback Segment Oracle
  • To see only files and/or folders using LS command Linux/Unix
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • First Entry in RAC Oracle
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • Finding last recovered file on DR and remove all chanracters before any “/” Linux/Unix
  • Create type and Grant on it. Oracle
  • Find long Running Transaction Linux/Unix
  • Jai Shree Ram Linux/Unix
  • Some OS level threshold for performance. Linux/Unix
  • DBMS_JOB all example Oracle
  • avail.sh ( find filesystem spae usage) Linux/Unix

Remove duplicate rows from table

Posted on 15-Jan-2008 By Admin No Comments on Remove duplicate rows from table

declare

cursor c1 is

select distinct PRODUCT_SKU, FIT_ID from geo_florist order by PRODUCT_SKU, FIT_ID;

begin

for cur1 in c1 loop

delete from geo_florist a

where a.rowid != ( select max(b.rowid) from geo_florist b

where a.product_sku = b.product_sku

and a.fit_id = b.fit_id)

and a.product_sku = cur1.product_sku

and a.fit_id = cur1.fit_id;

if (mod(c1%rowcount, 1000) = 0) then commit;

end if;

end loop;

end;

/

Oracle, SQL scripts

Post navigation

Previous Post: on IBM-AIX for display
Next Post: find the files that are 1 day old.

Related Posts

  • Default User Profile Oracle
  • PLSQL Table Syntax 1 Oracle
  • When to rebuld B-tree index Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • cp_filesystem.sql Oracle
  • SYSOPER Mystery Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • setting prompt display with .profile Linux/Unix
  • Kill a session dynanically using execute immediate Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • Identical Dblink Issue… Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Jai Shree Ram Oracle
  • Example of How To Resize the Online Redo Logfiles Note:1035935.6 Oracle
  • Monitor and Trace Unix processes using truss Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme