F
fazerdave
I am a bit confused by my relationships and primary keys.
My database contains customer details and each customer can have one or many
maintenance contracts. Each maintenance contract can have any number of call
outs.
I have set up 3 tables, customers, maintenance and callouts - each table has
a primary key ie customers ID etc. I have added the 'customer ID' field to
the maintenance table and the 'customer ID' and 'maintenance ID' to the
callout table.
My ideal result would be that when i select a customer it will show me the
relevant maintenance contracts for that customer and also if I select a
maintenance contract it will show the call outs etc.
I can't seem to get this to work so I must be doing something wrong or have
missed a vital relationship. Please could someone help?
My database contains customer details and each customer can have one or many
maintenance contracts. Each maintenance contract can have any number of call
outs.
I have set up 3 tables, customers, maintenance and callouts - each table has
a primary key ie customers ID etc. I have added the 'customer ID' field to
the maintenance table and the 'customer ID' and 'maintenance ID' to the
callout table.
My ideal result would be that when i select a customer it will show me the
relevant maintenance contracts for that customer and also if I select a
maintenance contract it will show the call outs etc.
I can't seem to get this to work so I must be doing something wrong or have
missed a vital relationship. Please could someone help?