Background:
I might just need a break and then it will come to me. But just in-case here we go:
I have nothing created for this yet I'm just drawing up some ERD's. This is for an engineering company doing electrical installations. We will be using the database to create quotes and this is just a starter to be honest. (keeping it as simple as possible for now.)
I'm going to create a parts database. We wont be monitoring stock at this stage so it should be simple.
Requirements:
*parts list
*part categories
*supplier list
*groups - would be a collection of parts. for whatever reason.
Most of this I have sorted. But I cant figure out how to categorise parts.
we will use two categories here as an example:
Cables - needs fields such as: diameter, cores, colour
Network - needs totally different fields.
(sorry if this is getting confusing)
problem:
I want every part to appear on the parts table..... but depending on the category it will need different information stored somewhere.
so we have a Cables table and a network table now. I need to link the unique part id with the unique cable ID (or network). So we need a junction table. I cant work out how to structure that junction table..
I'm very confused. If anyone understands and could help that would be great. If not, ill create an ERD on Monday and try to make a clearer example.
Thanks