Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a table of all duplicates in a dbf file
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00445501
Message ID:
00445513
Views:
11
>>>>>>>>>>>>>>>>>>>>>
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform