Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: SQL*Plus and PL/SQL >> Delete Duplicate Records

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Delete Duplicate Records
 seema  Posted: Apr 17, 2008 01:26:38 AM

 Total Post: 62
 Joined: Jan, 2008






 How to delete duplicate records from one table.

 GOPU
Posted: Apr 17, 2008 01:55:22 AM  

 Total Post: 333
 Joined: Apr, 2008






 
DELETE FROM duptest WHERE rowid NOT IN (SELECT max(rowid) FROM duptest GROUP BY id);

 Murtuja
Posted: Apr 17, 2008 02:09:45 AM  

 Total Post: 857
 Joined: Jan, 2006






 
http://www.google.com/search?hl=en&q=+delete+duplicate+records+oracle&meta=

 GOPU
Posted: Apr 17, 2008 02:13:17 AM  

 Total Post: 333
 Joined: Apr, 2008






 


DELETE FROM
table_name A
WHERE
a.rowid >
ANY (
SELECT
B.rowid
FROM
table_name B
WHERE
A.col1 = B.col1
AND
A.col2 = B.col2
);

 Mohammed Taj
Posted: Apr 17, 2008 02:48:18 AM  

 Total Post: 746
 Joined: Jul, 2007






 
http://dbataj.blogspot.com/2007/06/delete-duplicate-rows.html

 nag
Posted: Apr 21, 2008 02:23:37 AM  

 Total Post: 4
 Joined: Apr, 2008






 
select * from emp1 ep1
where rowid<(select max(rowid) from emp1 ep2
where ep1.empno=ep2.empno)

 seema
Posted: Sep 02, 2008 06:09:46 AM  

 Total Post: 62
 Joined: Jan, 2008






 
Tell me one more thing how to delete a particular record from duplicate records.

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar857
  Mohammed Taj746
  positive fanatic483
  Jayanta Sur479
  Vigyan Kaushik386
  Gopu Gopi333
  Gitesh Trivedi322
  Vinoth Kumar264
  neeraj sharma258
  Ramesh Jois246






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software