Goodevening everybody,
i am new to this community and i really need some help for a very easy task. I am trying to create a database.This database will store the following data:
Personal info:Name,Surname,City,Age,...
Next of kin:Name, address, phone
Measurementdata:Action,...data... ( the variable are many and of no importance considering the question i have )
Measurement info: Who did the measurement, date of the measurement, ...
My initial thought was to make 4 tables. The main table would be the one with the personal info and having immediate relationship with the next of kin table. The other two tables would be the ones that hold the data from the measurement and the rellationship with the personal info would be through through a foreign key.
After reconsidering i think i should make the project using 2 tables. One concerning the personal info and the other concerning measurement data+info.
Now my question.Whether i choose this structure of the other i come to the same problem. There is no unique identifier to make a primary key to the one table and and it manually to the other. I thought using a variable type int that would encrement after each insert but what would i do if i want to insert values in the measurement data+info table and later insert the personal info and use the primary key to update the foreigh key?
This problem really troybles my a lot and i think it is more a design one!!!
Please help with a suggetion? What is a common procedure for such an implemantation?
iogoume