Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding duplicate table records
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00168069
Message ID:
00168083
Vues:
24
>Somewhere recently I saw posted an idea for a quick identification of duplicate records in an indexed table, but I cannot find it with UT search. Anyone remember it?
>
>regards,

Try this...

SELECT fieldname, COUNT (*) AS ct FROM tablename GROUP BY fieldname HAVING ct>1

fieldname is the indexed field
tablename is the table

I did this on two and a half million records and it found eleven duplicates in just eight minutes!
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform