Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I find duplicate records in a table
Message
De
17/12/2008 14:23:06
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
17/12/2008 12:24:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Stonefield
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Divers
Thread ID:
01368200
Message ID:
01368248
Vues:
11
>Is it possible to find only duplicate records using Stonefeild Query?

This can be done with a standard Visual FoxPro query; since I don't know Stonefield, you see whether you can adapt it.

In this example, KeyField should be unique, but you you suspect that it may, in fact, contain duplicates:
select KeyField, count(*) as HowMany;
  from MyTable;
  group by KeyField;
  having HowMany > 1
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
Répondre
Fil
Voir

Click here to load this message in the networking platform