Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detect duplicate records
Message
De
24/07/1998 22:34:17
 
 
À
24/07/1998 18:42:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00121228
Message ID:
00121281
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform