Multiples sub tables from a main table help

wackywoo105

Registered User.
Local time
Today, 10:11
Joined
Mar 14, 2014
Messages
204
I have a database with around 3k entries. I want to create more tables that are linked to records in the main table, but only for some of the 3k main records, not all of them. I also want one of these tables to be capable of multiple records that are linked to a single record in the main table.

Currently I have created the first separate table (which only requires a single record per main table record). For this table I use the unique ID in the main table in the 2nd field of the sub table. The sub table then also has a unique id for each record. Occasionally, if my database glitches, it adds the data from a main table record to the 1st record in the sub table, rather than a new record or the correct one. Due to this I keep the 1st record as a dummy record.

I'm guessing I haven't gone about this in the correct way. Can anyone help with what I am suppose to do, or point me to guide?
 
Why create a separate table at all if there is only going to be one record per record in the main table? Then you might as well add fields to the main table.
 
I have a database with around 3k entries. I want to create more tables that are linked to records in the main table, but only for some of the 3k main records, not all of them. I also want one of these tables to be capable of multiple records that are linked to a single record in the main table.

Currently I have created the first separate table (which only requires a single record per main table record). For this table I use the unique ID in the main table in the 2nd field of the sub table. The sub table then also has a unique id for each record. Occasionally, if my database glitches, it adds the data from a main table record to the 1st record in the sub table, rather than a new record or the correct one. Due to this I keep the 1st record as a dummy record.

I'm guessing I haven't gone about this in the correct way. Can anyone help with what I am suppose to do, or point me to guide?
Can you upload a screenshot of your table relationships?
 

Users who are viewing this thread

Back
Top Bottom