Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find duplicates
Message
From
13/04/2000 10:14:18
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00358922
Message ID:
00359256
Views:
13
>>>I know there was a thread here recently that discussed finding duplicates using SQL... but the UT search seems to be broken, so I'll ask if anyone can provide the thread # or sample code.

I do it like this:
select * from mytable where key in ;
    (select key from mytable group by key having cnt(*) > 1)
This returns a cursor that has all the duplicated records in it.
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Reply
Map
View

Click here to load this message in the networking platform