Click here to Skip to main content
15,893,644 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Friends

I want to delete duplicate data from database.

Pls tell me the query for it.
Posted
Updated 4-Mar-11 18:02pm
v2

Hope this[^] might help you.
 
Share this answer
 
"http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:15258974323143"



http://stackoverflow.com/questions/1173963/how-to-delete-duplicate-rows-with-sql[^]
 
Share this answer
 
hope this will do...

with cte (c1, c2, rr)
as
(
select c1, c2, row_number() over(partition by c1,c2 order by c1,c2)[rr] from tbl1
)
delete from cte where rr>1
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900