I've been practicing MySQL and PHP to database products on a website. One of the big problems I'm having is deciding how much normalization I need to do. How much should I break down the product information?
I think for these manufactured goods that I'm data-basing, I really only need one table for each type. For instance:
A table for "air registers" that includes:
- Product name (product type)
- Product Number
- Description
A table for "light fixtures":
- Product name (product type)
- Product Number
- Description
Is this ok? In the O'Reilly book I'm reading they put big emphasis on data structure and good normalization. It kind of seems like I'll figure out what works and what doesn't by succeeding and failing, but I was just wondering if anyone has any suggestions.
I think for these manufactured goods that I'm data-basing, I really only need one table for each type. For instance:
A table for "air registers" that includes:
- Product name (product type)
- Product Number
- Description
A table for "light fixtures":
- Product name (product type)
- Product Number
- Description
Is this ok? In the O'Reilly book I'm reading they put big emphasis on data structure and good normalization. It kind of seems like I'll figure out what works and what doesn't by succeeding and failing, but I was just wondering if anyone has any suggestions.
Comment