Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relations question
Message
 
 
To
24/01/2001 12:14:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00467984
Message ID:
00468008
Views:
14
Mark,
There is nothing to prevent this but you should know you could have problems if you use Table1 and Table2 at the same time and try to retrieve data from Table3. A relation causes a corresponding SEEK to be performed on the child table whenever the record pointer is moved in the parent table. If you move the record pointer in table1 and then in table2, you probably won't be able to get the correct information for the table1 relation because the table3 record pointer will have moved in response to the second relation.

You could use two SQL statements and process them separately or UNION them together and process them in one SCAN...ENDSCAN.

HTH.

>I have this question and perhaps it goes against some normalization rules
>but is it possible to have two tables in relation with a single table
>as in example:
>table1 has
>field1
>field2
>table2 has
>field3
>field4
>
>table3 (the child of the two above)
>field1 (to be use on relation--table1)
>field2 (to be use on relation--table2)
>detailsfield1
>detailsfield2
>
>etc
>
>or perhaps create a cursor to solve this problem
>
>tx
>
>marcos oliva
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform