Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find Similar Records in a Cursor and Exclude One
Message
From
15/02/2008 01:21:56
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01292797
Message ID:
01292892
Views:
16
>>I have a table. Some field values are saved to memory variables for the current record. I then run SQL to get all records from the same table that match the field values. These are not duplicate records, just matching according the values of those specific variables from the current record. This works well, but I then need to exclude the original record from the resulting cursor. So, I want the ones that match, but not the one that I used to create the criteria.
>>
>>UPDATE: I think I may be able to use RecNo() for this. Testing now, but if anyone knows of something better or an issue with using RecNo(), let me know.
>
>RecNo() is what I would use, too.

Only if no primary or candidate key exists in the table...

my 0.02 EUR

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform