Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Relationship between Tables
Message
From
26/05/1998 13:07:24
 
 
To
26/05/1998 13:03:12
Tan Gay Cheong
Cybercomp Computer Services
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00101487
Message ID:
00101975
Views:
22
>Take for example, I have a pkey (primary key for customer) and the pkey is a unique key for installment)
>
>Do I have to put the default value for the pkey in installment as the pkey in customer?

No....assuming that customer is the parent and installment is the child, installment inherits the value of that field. You might with to change the field name in installment to avoid confusion (call it customer_fk for foreign key). Within the Insert trigger, REPLACE installment.customer_fk WITH customer.pkey
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform