Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Erasing duplicates
Message
From
29/08/2001 13:24:11
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00550436
Message ID:
00550444
Views:
15
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

Depends on how do you define a duplicate. ie:If only all fields match considered as duplicate :
select * from myTable ;
union ;
select * from myTable ;
into cursor crsUnique nofilter

select myTable
zap
append from dbf('crsUnique')
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform