AndrewS
3 years agoQrew Trainee
Is it possible to use not PK field to establish one to many connection?
Hi,
I have:
'Budgets' table which has 'Customer', 'Estimate'(PK) and 'Amount' fields,
'Budget lines' which has 'Estimate'(FK) and 'Amount' fields,
'Invoices' which has 'Customer' and 'Amount' fields.
'Budgets' have many 'Budget lines' (connected thru the "Estimate")
I would like to connect 'Budgets' and 'Invoices' using 'Customer' field, but my primary key in the 'Budgets' table is 'Estimate'
Is it any way to use 'Estimate' field as a PK for 'Budgets' - 'Budget Lines' connection
and at the same time
use 'Customer' field as a PK for 'Budgets' - 'Invoices' connection.
Thanks in advance.
------------------------------
Andrew S
------------------------------
I have:
'Budgets' table which has 'Customer', 'Estimate'(PK) and 'Amount' fields,
'Budget lines' which has 'Estimate'(FK) and 'Amount' fields,
'Invoices' which has 'Customer' and 'Amount' fields.
'Budgets' have many 'Budget lines' (connected thru the "Estimate")
I would like to connect 'Budgets' and 'Invoices' using 'Customer' field, but my primary key in the 'Budgets' table is 'Estimate'
Is it any way to use 'Estimate' field as a PK for 'Budgets' - 'Budget Lines' connection
and at the same time
use 'Customer' field as a PK for 'Budgets' - 'Invoices' connection.
Thanks in advance.
------------------------------
Andrew S
------------------------------