Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET RELATION
Message
From
26/08/1998 01:06:23
 
 
To
25/08/1998 11:01:13
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00129719
Message ID:
00129940
Views:
18
>I have a parent table P2 and two related child tables C1 and C2.
>Each table has in excess of 1 million records. After SETting
>the RELATIONs, how can I examine only those records in the
>children tables that should be constrained to the parent relationship?
>
>Based on the child related info, I will update a field in the
>parent table.

Assuming you have shared access,
SELECT P2
SCAN FOR C1.fieldname = xxxx
REPLACE .... do whatever
ENDSCAN
SCAN FOR C2.fieldname = xxxx
REPLACE .... do whatever
ENDSCAN

If not multiuser
REPLACE FOR C1.fieldname = xxxx P2field WITH newvalue
will be faster
HTH
Previous
Reply
Map
View

Click here to load this message in the networking platform