The Archn00b
Registered User.
- Local time
- Today, 10:33
- Joined
- Jun 26, 2013
- Messages
- 76
Hello
Quick question:
Say I have two different dataset types.
Type A cam be stored in two tables, a main data table (call it Main_Data) and a metadata (Call it Metadata) table which contains information on Main_Data. There would be a one to many relationship between the relevant parent (Metadata) and the child (Main_Data) field.
Type B can be stored in just a single table, which would be similar to Main_Data. There is no need for an equivalent Metadata table.
However I would like to store the two types together. I am planning on keeping the structure described in the second paragraph. IN this case, Type B data would be divided into the Metadata and Main_Data tables and linked through a one to many relationship also. However the use of the one to many relationship would be completely redundant if I were to be just storing type B data. A one to one relationship would suffice. Or I would just keep it in the same table!
So my question is, is the structure that I am proposing (one to many relationships for some data that really could be stored as one to one relationships or in the same field) inefficient with respect to database structuring guidelines?
Thanks!
Quick question:
Say I have two different dataset types.
Type A cam be stored in two tables, a main data table (call it Main_Data) and a metadata (Call it Metadata) table which contains information on Main_Data. There would be a one to many relationship between the relevant parent (Metadata) and the child (Main_Data) field.
Type B can be stored in just a single table, which would be similar to Main_Data. There is no need for an equivalent Metadata table.
However I would like to store the two types together. I am planning on keeping the structure described in the second paragraph. IN this case, Type B data would be divided into the Metadata and Main_Data tables and linked through a one to many relationship also. However the use of the one to many relationship would be completely redundant if I were to be just storing type B data. A one to one relationship would suffice. Or I would just keep it in the same table!
So my question is, is the structure that I am proposing (one to many relationships for some data that really could be stored as one to one relationships or in the same field) inefficient with respect to database structuring guidelines?
Thanks!