Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a table of all duplicates in a dbf file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00445501
Message ID:
00445513
Vues:
19
>>>>>>>>>>>>>>>>>>>>>
>>Try this:
>>
>>SELECT * FROM TableName ;
>> WHERE Name IN (SELECT Name FROM TableName GROUP BY Name HAVING COUNT(*) > ) ;
>> INTO TABLE Duplicates
>>>>>>>>>>>>>>>>>>>>>
>
>Minor typo correction:
>
>
>SELECT * FROM TableName ;
> WHERE Name IN ;
> (SELECT Name FROM TableName GROUP BY Name HAVING COUNT(*) > 1) ;
> INTO TABLE Duplicates
>


We forgot one thing to make it easier to see the duplicates together:


SELECT * FROM TableName ;
WHERE Name IN ;
(SELECT Name FROM TableName GROUP BY Name HAVING COUNT(*) > 1) ;
ORDER BY Name
INTO TABLE Duplicates
Chris McCandless
Red Sky Software
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform