Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detect duplicate records
Message
From
24/07/1998 22:34:17
 
 
To
24/07/1998 18:42:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00121228
Message ID:
00121281
Views:
19
>Hi all
>
>I looking for some way to detect in a table (using a query) in VFP 3.0
>how to detect duplicate records..
>
>Thanks in advance


Determine what makes a record unique, say field1, field2, field3, then:

SELECT field1, field2, field3, count(*) as count ;
from MyTable ;
group by field1, field2, field3 ;
having count > 1 ;
into cursor cdupes
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform