Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Duplicate values
Message
De
02/01/2001 17:20:15
 
 
À
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:
00458679
Vues:
18
>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.

Assuming the 2 fields are Field1 and Field2:
Select Field1, Field2, Count(*) ;
  From mytable ;
  Group By Field1, Field2 ;
  Having Count(*) > 1 ;
  Into Cursor cuDupes
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform