E
Emlou85 via AccessMonster.com
Hi
I'm trying to set up a database but I'm not sure that I've got the right
fields in the right tables and I'm not sure that my relationships are correct
either. Could someone help me please!
tblTest
Test ID (P)
Licence Number
Date
Type of Test
Passed?
tblCustomer
Licence Number (P)
Surname
Forename
Address 1
Address 3
County
Postcode
DOB
Telephone No.
Enrolled on pass plus
tblBooking
Booking ID (P)
Instructor ID
Licence Number
Time
Date
Location Pick up
Location Drop Off
Single/Double Lesson
Customer Paid?
tblInstructor
Instructor ID (P)
Surname
Forename
Address 1
Address 2
County
Postcode
Date of Birth
Telephone Number
Price per lesson
Currently I have the following relationships:
tblCustomer - Licence Number - tblTest - Licence Number (one to many)
tblCustomer - Licence Number - tblBooking - Licence Number (one to many)
tblInstructor - Instructor ID - tblBooking - Instructor ID (one to many)
However, I think I must be going wrong somewhere because if i want to find
all the people who have passed their theory test and for the query to also
display the name of their instructor the results are incorrect. I was
wondering if I needed to have the Instructor ID as a foreign key in
tblCustomer but then presumably there would be no link between tblInstructor
and tblBooking.
Hope someone can help! Thank you in anticipation.
Emma
I'm trying to set up a database but I'm not sure that I've got the right
fields in the right tables and I'm not sure that my relationships are correct
either. Could someone help me please!
tblTest
Test ID (P)
Licence Number
Date
Type of Test
Passed?
tblCustomer
Licence Number (P)
Surname
Forename
Address 1
Address 3
County
Postcode
DOB
Telephone No.
Enrolled on pass plus
tblBooking
Booking ID (P)
Instructor ID
Licence Number
Time
Date
Location Pick up
Location Drop Off
Single/Double Lesson
Customer Paid?
tblInstructor
Instructor ID (P)
Surname
Forename
Address 1
Address 2
County
Postcode
Date of Birth
Telephone Number
Price per lesson
Currently I have the following relationships:
tblCustomer - Licence Number - tblTest - Licence Number (one to many)
tblCustomer - Licence Number - tblBooking - Licence Number (one to many)
tblInstructor - Instructor ID - tblBooking - Instructor ID (one to many)
However, I think I must be going wrong somewhere because if i want to find
all the people who have passed their theory test and for the query to also
display the name of their instructor the results are incorrect. I was
wondering if I needed to have the Instructor ID as a foreign key in
tblCustomer but then presumably there would be no link between tblInstructor
and tblBooking.
Hope someone can help! Thank you in anticipation.
Emma