Is it a problem to have relationships set like the following:
Table1 has it's own ID PK field (we'll call it T1ID)
Table2 has it's PK field T2ID and the FK of T1ID
That's the normal stuff, but is it wrong to have another table:
Table3 has PK T3ID and two FK T2ID and T3ID
I guess why I ask is because I may want to pull information on table 3 based on the PK field from table 2, however I may just want all that data from table 3 only where it relates to table 1.
Hopefully that makes sense.
It just looks weird in the relationship table with the junction table (table2) along with the relationship straight from table1 to table3.
I have looked for normalization and what not and didn't find anything that talked about this.
Do I leave that relationship out from table 1 to table 3 and just create it as I need it on my queries?
Any insight will be helpful.
Table1 has it's own ID PK field (we'll call it T1ID)
Table2 has it's PK field T2ID and the FK of T1ID
That's the normal stuff, but is it wrong to have another table:
Table3 has PK T3ID and two FK T2ID and T3ID
I guess why I ask is because I may want to pull information on table 3 based on the PK field from table 2, however I may just want all that data from table 3 only where it relates to table 1.
Hopefully that makes sense.
It just looks weird in the relationship table with the junction table (table2) along with the relationship straight from table1 to table3.
I have looked for normalization and what not and didn't find anything that talked about this.
Do I leave that relationship out from table 1 to table 3 and just create it as I need it on my queries?
Any insight will be helpful.