Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding duplicate table records
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00168069
Message ID:
00168083
Views:
30
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform