Hi,
I've been given the "enviable" task of finding duplicates in a database table. The database is SQL7. The table is very old and has over 40,000 records. The table contains client information and the users do a lookup on the telephone number to find the client. The problem is, over the years, users have re-added some of the clients thinking they didn't exist without doing a lookup and the client telephone number was never used as a unique ID. I have found up to three versions of these clients with the same phone number but their names are spelled differently. My questions is, how would I extract a list of duplicate clients? In other words, I'd like to be able to list the clients that have been entered more than once, the common thread being their telephone number. I can do the ASP part, it's the SQL statement I'm having trouble with. Any thoughts would be greatly appreciated.
<select * from clients where phone????>
Thanks.
I've been given the "enviable" task of finding duplicates in a database table. The database is SQL7. The table is very old and has over 40,000 records. The table contains client information and the users do a lookup on the telephone number to find the client. The problem is, over the years, users have re-added some of the clients thinking they didn't exist without doing a lookup and the client telephone number was never used as a unique ID. I have found up to three versions of these clients with the same phone number but their names are spelled differently. My questions is, how would I extract a list of duplicate clients? In other words, I'd like to be able to list the clients that have been entered more than once, the common thread being their telephone number. I can do the ASP part, it's the SQL statement I'm having trouble with. Any thoughts would be greatly appreciated.
<select * from clients where phone????>
Thanks.