Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table duplicated
Message
From
04/07/2007 09:24:42
 
 
To
29/03/2004 03:27:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00890344
Message ID:
01237735
Views:
28
hi,

i need your help to delete the duplicted record first at field ClientNo second at field name,

another thing, if you can help me to insert the all duplicted records at new table,and deleted(zap) form the old table.
use myTable exclusive
index on ClientNo tag ClientNo
select sys(2015) as SortOrder,* from myTable ;
 order by 1 descending ;
 into cursor crsTemp nofilter
select myTable
zap
select crsTemp
scan
 if !seek(ClientNo,'myTable','ClientNo')
   scatter memvar memo
   insert into myTable from memvar
 endif
endscan
thank you.

,
>>hi,
>>
>>i mean in mytable(aa) i have field(client no) ,(client no) duplicated many time ,i need
>>(clint no) as a one record in mytable(aa),
>>
>> i dont want to use new table
>
>
>use myTable exclusive
>index on ClientNo tag ClientNo
>select sys(2015) as SortOrder,* from myTable ;
> order by 1 descending ;
> into cursor crsTemp nofilter
>select myTable
>zap
>select crsTemp
>scan
> if !seek(ClientNo,'myTable','ClientNo')
>   scatter memvar memo
>   insert into myTable from memvar
> endif
>endscan
>
Cetin
Previous
Reply
Map
View

Click here to load this message in the networking platform