Soldato
- Joined
- 28 Nov 2008
- Posts
- 8,725
- Location
- UK
I am designing a database of orders. An order can either be a monthly subscription type thing, or a pay-once type thing. This means that each order will have different properties depending on the type.
Order properties = columns
Is it best practice to create one order table with all of the columns for order properties of all types, or to create an entirely separate order table for each order type, with specific columns for properties as appropriate?
Order properties = columns
Is it best practice to create one order table with all of the columns for order properties of all types, or to create an entirely separate order table for each order type, with specific columns for properties as appropriate?
), though I'd also add a 'type' field or similar in the main orders table so you can identify which order sub-table you have to query.
. I take no responsibility for any damage caused by using any of the advice in this, or any of my, posts
.