Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle 11g Training on 29JAN1010 Oracle
  • Oracle Connections expire_time and firewall Oracle
  • Multiple listeners Oracle
  • Histogram information Oracle
  • First Entry in RAC Oracle
  • good linux notes Linux/Unix
  • This is from Temi Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • How to Modify the statistics collection by MMON for AWR repository Oracle
  • Changing the Global Database Name Oracle
  • How can I tell if ASO is installed ? Oracle
  • Privilege to describe the table. Oracle
  • Implementation of key based authentications Linux/Unix
  • Handling LOB data in Oracle Oracle
  • find the files that are 1 day old. 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

  • Oracle Data Direct to TAPE Oracle
  • get_vmstat.ksh for Solaris Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Proc code Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • Renaming the column name Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Deleting first line and lastline of a file using sed Linux/Unix
  • PLSQL Table Syntax 1 Oracle
  • Reading parameter file and printing Linux/Unix
  • setting prompt display with .profile Linux/Unix
  • restarting network in linux Linux/Unix
  • proc.sql Oracle
  • Oracle 11g Training on 29JAN1010 Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme