Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding dups and Deleting
Message
 
À
17/07/2001 14:39:02
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00531663
Message ID:
00531670
Vues:
11
You can identify duplicates by the following:
Select [fieldname], count(*) ;
   From [tablename] ;
   Group by [fieldname] ;
   Having count(*) > 0 ;
   Into Cursor [cursorname]
Use your drawing number + revision as the [fieldname]. You should then be able to work something out from the resultant cursor. (All the above is from memory - should be correct but I'm not 100% on it).


>I have a table in which records are appended to it from another app. The table contains a drawing number, a revision and a datetime field the record was appended. The table can recieve records of duplicate drawing numbers with different rev levels. My quest is to have a routine to "purge" the table of previous revisions and only leave the current or latest revision in the table before it is used to do the task it was created for. Thanks for any help.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform