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:
00445503
Views:
15
>>>>>>>>>>>>>>>>>>>>
>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


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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform