I am trying to work on a database and now I am getting completely confused and need some help.
Can someone explain to me how primary and foreign keys work?
Here is a basic structure of what I am planning.
Table 1
Site ID
Site Name
Site Address (broken up of course)
Table 2
Personnel ID
Site ID
Name
Phone
Email
Table 3
Project ID
Site ID
Project #
Budget
Table 4
Contact ID
Personnel ID*
Employee ID*
Site ID *
Date
Comments
*only think i need these because i will be making a report that will be using data from all of these tables.
Table 5
Employee ID
Employee Name
Table 6
Payment ID
Site ID
Amount
Table 7
Validation ID
Site ID
Results
So my question is - in order for me to fill out my forms, i will have to remember all the ID numbers? and cannot auto-fill any fields?
I just don't get it. Please help. I have been working on this DB for 4 weeks now and I keep getting so close and then having to start over.
Can someone explain to me how primary and foreign keys work?
Here is a basic structure of what I am planning.
Table 1
Site ID
Site Name
Site Address (broken up of course)
Table 2
Personnel ID
Site ID
Name
Phone
Table 3
Project ID
Site ID
Project #
Budget
Table 4
Contact ID
Personnel ID*
Employee ID*
Site ID *
Date
Comments
*only think i need these because i will be making a report that will be using data from all of these tables.
Table 5
Employee ID
Employee Name
Table 6
Payment ID
Site ID
Amount
Table 7
Validation ID
Site ID
Results
So my question is - in order for me to fill out my forms, i will have to remember all the ID numbers? and cannot auto-fill any fields?
I just don't get it. Please help. I have been working on this DB for 4 weeks now and I keep getting so close and then having to start over.
