Groups | Blog | Home
all groups > sql server (alternate) > july 2003 >

sql server (alternate) : Deleteing duplicate records from my table


billzimmerman NO[at]SPAM gospellight.com
7/31/2003 9:56:45 AM
I just discovered that all my records appear twice inside my table, in
other words, they repeat on the row below. How can I delete all of the
duplicates? I'm sure there must be a tidy line of sql to do that.

Thanks,

levy_jonathan NO[at]SPAM cdph.org
7/31/2003 4:31:04 PM
[quoted text, click to view]

Maybe run a select distinct query and insert the results into a new
table? If need be, you could then delete all records from your
original table and insert the records back.

That should be reasonably tidy but it is hard to say what the
AddThis Social Bookmark Button