Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GET RID OF DUPLICATES
Message
 
To
28/11/2000 12:19:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00446244
Message ID:
00446275
Views:
8
One way is to do a select distinct on the table, zap it, then do an append from the select result.
select distinct * from table into cursor cursa
if !used('table')
    use table excl
    zap
    append from dbf('cursa')
else
    use in table
    use table excl
    zap
    append from dbf('cursa')
endif
use in table
use in cursa
Now you have a table with no duplicate records. The next thing is arranging the app to not allow duplicates to be created.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform