Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Erasing duplicates
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00550436
Message ID:
00550445
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Friends!
>
>How can I delete all duplicate records from a table?
>
>TIA

Typically you may issue SQL statement like this:
SELECT myfieldname, COUNT(myfieldname) ;
	FROM mytable ;
	GROUP BY myfieldname ;
	HAVING COUNT(myfieldname) > 1 ;
	INTO CURSOR mycursor
You might try also some utilities in Download section:

file#289
file#9631
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform