D
Dale
I want to create two tables from my source data. The source data contains
patient registrations and encounters based on date and time of registration.
I want to split the data, create a patients table and and an encounters
table. The patient table is straight forward, create a table based on the
unique registration id. For the encounters, the table will be based on the
registration id and date and time. Is it more efficient to convert the date
and time to a numeric number (customx) and link the tables by registration
id from the patient table to the encounters table by registration id and
customx. Or is it just as efficient to link to the registration id and date
and time in the encounters table. In other words reduce the primary keys
from 3 to 2 in the one table.
patient registrations and encounters based on date and time of registration.
I want to split the data, create a patients table and and an encounters
table. The patient table is straight forward, create a table based on the
unique registration id. For the encounters, the table will be based on the
registration id and date and time. Is it more efficient to convert the date
and time to a numeric number (customx) and link the tables by registration
id from the patient table to the encounters table by registration id and
customx. Or is it just as efficient to link to the registration id and date
and time in the encounters table. In other words reduce the primary keys
from 3 to 2 in the one table.