By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,575 Members | 1,948 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,575 IT Pros & Developers. It's quick & easy.

Duplicate records

P: 53
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
Share this Question
Share on Google+
1 Reply


ck9663
Expert 2.5K+
P: 2,878
@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.