Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete duplicate records
Message
From
27/11/2006 07:43:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Delete duplicate records
Miscellaneous
Thread ID:
01172620
Message ID:
01172620
Views:
75
Dear Experts,

Table1 has three fields as

date---------d(8)
voucher-----n(4)
type---------c(2)

data in table is as follows

25/11/06----1----SL
25/11/06----1----SL
25/11/06----2----SL
25/11/06----2----SL
25/11/06----2----SL
25/11/06----1----SD
25/11/06----1----SD
25/11/06----1----SD

I want to delete more than two records according to following index file

select table1
index on dtoc(date)+str(voucher)+allltrim(type) to xyz

after processing the data in table should look like this

25/11/06----1----SL
25/11/06----1----SL
25/11/06----2----SL
25/11/06----2----SL
25/11/06----1----SD
25/11/06----1----SD

The number of same records is two.

Please help
Next
Reply
Map
View

Click here to load this message in the networking platform