Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 de-duping table

Author  Topic 

tomharrow
Starting Member

1 Post

Posted - 2005-05-09 : 12:32:47
Hi All

I have a table of approx 500,000 members which I need to dedupe only by email address. and i dont mind which records get removed. as long as there is a unique email address.

e.g.

tom, harrow, tom@tom.com, 30/09/1978, blue, £456
thomas, harrow, tom@tom.com, <NULL>, blue, £456
tom, harrow, tom@tom.com, 30/09/1978, <NULL>, <NULL>

I dont mind which record remains... as long as there are no duplicate email addresses.

I have tried a number of ways but none seem to work properly and the only effective method opnly keeps one field(email) i.e. creates a table with only distinct email addresses.

Any help hugely appreciated.

Thanks

Tom

nathans
Aged Yak Warrior

938 Posts

Posted - 2005-05-09 : 17:32:57
try...

http://www.sqlteam.com/item.asp?ItemID=3331

Go to Top of Page
   

- Advertisement -