Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate values
Message
De
02/01/2001 17:22:00
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australie
 
 
À
02/01/2001 17:10:21
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00458671
Message ID:
00458683
Vues:
11
Hi Steven,

You could try:
SELECT myfield, COUNT(*) ;
   FROM mytable ;
   GROUP BY myfield ;
   HAVING COUNT(*) > 1 ;
   INTO TABLE mydupes
This will give you a Table of Duplicate values is myfield and the number of occurences.

Hope this helps,
Gavin...

>How can I scan a table and find duplicate values in a particular field? I want to create a primary index on two fields and it tells me it can't be done because of dups.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform