Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete identical records
Message
De
13/06/2001 15:35:32
 
 
À
13/06/2001 15:21:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00519018
Message ID:
00519033
Vues:
15
This will show you the manifests that are duplicated (e.g thatshow up more than once).
Then it's easy to traverse the set and delete the extra records.
SELECT Manifest, COUNT(*) as Knt ;
FROM ManifestTable ;
GROUP BY Manifest ;
HAVING Knt > 1
>I want to delete all the records in a table that have the same manifest number but keep the one record of it in the table. How would I do this?
>
>Tyler


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform