Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing duplicates
Message
 
 
À
16/12/2004 21:56:16
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00969603
Message ID:
00970275
Vues:
17
>>Check BINARY_CHECKSUM() function in BOL.
>
>Had a look at it, but as far as I can see it is useful for checking records that have changed. I am not sure how it can help in removing duplicate records. Am I missing something obvious here?

Hi Alan,

The BINARY_CHECKSUM() function would return the same value if rows are the same (duplicates) and it ignores text, ntext and image columns. You can temporay add a calculated column with BINARY_CHECKSUM() as expression to your table and use it as starting point in finding duplicates. Unfortuantelly, there's as small chance that the different data in a row can produce the same checksum so you'll have to add some other columns to the comparison.
Keep in mind that it's just an idea and test thoroughly.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform