Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Insert cause enqueue locks Oracle
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • find_idle_cpu.sql Oracle
  • All About oracle password and security from metalink Oracle
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • How to analyze statspack or AWR report. Oracle
  • Jai Shree Ram Oracle
  • Very clear article about oracle dataguard Oracle
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • SQL Server Vs Oracle Architecture difference SQL Server
  • How does one overcome the Unix 2 Gig file limit? Linux/Unix
  • How to collect CPU usage on Linux using Shell script 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

  • How to start CRS manually Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Configure ssh authentications for RAC Oracle
  • Oracle Internal Good Websites 1 Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • Oracle Material from OTN Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 751131.1 New Article Error 2819 While Requesting a Systemstate Dump Oracle
  • Handling LOB data in Oracle Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • Insert cause enqueue locks Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • get_aix_vmstat.ksh Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme