I'm creating database tables for a grocery store inventory. So far, I have a product table that include the SKU number, the company name, and the category name). And I also have a price table that include the SKU numbers and their price. Other tables that I'm considering of making are a table for each category (e.g. produce, can goods, dairy, etc). The primary key is the SKU number.
I need help verifying/clarifying the following:
- Is it necessary to include price in the product table? I feel not, but I'm not sure.
- If there's an update in price and I have price as an attribute in both tables, would I need to make an update in both tables? Yes(?)
- It's better to have price as an attribute in the price table only instead of in both product and price tables, because I only to update one table.
Thank you for all your help!