Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Repeated records
Message
From
02/08/2007 02:04:02
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01245292
Message ID:
01245380
Views:
18
Naomi,
>Check Eliminating duplicates in a table FAQ #8129

I just glanced over your FAQ, and your method 2 seems to use too elaborate
code for the way to process (not totally sure, before my first coffe<g>)

I am quite sure you can get by with no second table just by scanning the ordered testDupe
table and using the "compare" memvar. Eliminates all seeking, and you are elimianting
in the order given by dupe, which should be identical to testdupe with order set.

Perhaps a "delete while" instead of the second scan loop can make the code even easier -
check where the recordpointer is after the delete while, as I am not sure the outer
scan makes code easier than the normally slower "do while !eof()" as we have record pointer
movement inside the loop.

Sorry to be imprecise, but I know you have no problem to fiddle a bit with your own code ;-)

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform