Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate Records
Message
De
18/01/2002 14:14:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00605795
Message ID:
00606938
Vues:
26
>I plan to do that for the future.
>
>I still need a way to find to duplicates and get rid of them.

If you only want to detect the duplicates, and do the cleaning-up manually, use a SELECT statement:
select *, count(*) as _count;
  from MyTable;
  group by KeyField1, KeyField2, KeyField3;
  having _count > 1
The combination KeyField1, KeyField2, KeyField3 is supposed to be unique in this example.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform