467,917 Members | 1,319 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,917 developers. It's quick & easy.

Duplicate records

I have a table with duplicate records and I want to delete one set of records from this table. is there any function which I can use in remove this dups from table.

thanks,
Deven
Nov 26 '08 #1
  • viewed: 1045
Share:
1 Reply
ck9663
Expert 2GB
@Deven Oza
If it's a full duplicate (all columns are the same), use SELECT... DISTINCT... INTO...a new table.

Up to you if you either:
1. truncate your table
2. insert from newly created one.

or

1. drop your table
2. rename the newly created table.

Happy coding!


-- CK
Nov 27 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Gary Lundquest | last post: by
2 posts views Thread by Carroll | last post: by
4 posts views Thread by Thomas Arthur Seidel | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.