r/DatabaseHelp • u/JudasSicariote • Oct 31 '17
Should I inherit a foreign key?
Should I inherit the prod_type_id key into the "sold" table as shown in the image below? https://i.imgur.com/HwtALoH.jpg
1
Upvotes
View all comments
Show parent comment
1
u/JudasSicariote Oct 31 '17
Using joins I can get to the product_type table.
This was a simple example. I have other situation where I'd need to make several joins (i.e. up to five "nested" tables) when producing reports. I'm thinking more of performance vs. design as I said in another comment.