G
Guest
I have a HUGE table with LOADS of fields that I have been informed is not the
way to go, that for example I should have a one to many relationship between
employee and dependent tables so.
I now have one table with empID (primary key), last name, first name,
address, date of birth, phone numbers, SIN # etc. etc.
2nd table has empID, dep1, dep1relation, dep1dateof birth, dep2,
dep2relation, dep2dateofbirth, dep3, ..... and so on.
Here are my questions:
1. Do I remove all fields from table one that are now in table two (dep1,
dep1relation...)?
2. If an employee down the road has more than 5 dependents(the number of
fields I have set up) do I just add new fields to the 2nd table
3. If I need to make changes that relate to both tables (i.e. remove a
record etc) do I make them on the first table.
4. Is there ANYTHING else I should know when doing this. I am a self taught
sole user in an organization with 175 employees so doing this right is
critical. This is our only means of housing this information.
Thank you for any advise and help you may offer.
way to go, that for example I should have a one to many relationship between
employee and dependent tables so.
I now have one table with empID (primary key), last name, first name,
address, date of birth, phone numbers, SIN # etc. etc.
2nd table has empID, dep1, dep1relation, dep1dateof birth, dep2,
dep2relation, dep2dateofbirth, dep3, ..... and so on.
Here are my questions:
1. Do I remove all fields from table one that are now in table two (dep1,
dep1relation...)?
2. If an employee down the road has more than 5 dependents(the number of
fields I have set up) do I just add new fields to the 2nd table
3. If I need to make changes that relate to both tables (i.e. remove a
record etc) do I make them on the first table.
4. Is there ANYTHING else I should know when doing this. I am a self taught
sole user in an organization with 175 employees so doing this right is
critical. This is our only means of housing this information.
Thank you for any advise and help you may offer.