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:
00168090
Views:
29
>>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!

Wow! Thanks for the tip. I'll put it in my good snippits box right now.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Reply
Map
View

Click here to load this message in the networking platform