Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Identifying duplicate records
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00332926
Message ID:
00333249
Views:
10
Ed,

Another SQL option to select all occurences of the dups based upon some criteria:

This example uses the zip and lastname but any "match code" could be substituted. In practice, I'd probably union a few of these with differen't criteria.

select * from TABLE ;
where left(zip,5)+upper(alltrim(lastname)) in ;
(select left(zip,5)+upper(alltrim(lastname));
from table;
group by 1;
having count(*)>1);
into cursor dups


HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform