I am not sure if this is the correct forum, but I am in a bit of a pinch, and need a little advice. I have been given a challenge by my VP. He wants me to design a part number database that will allow a user to enter a part number (it can be our part number, a supplier part number, or a competitor part number) and return all the part numbers from suppliers, competition, etc. that relate to our part. Similar to a cross reference file.
The data that I will get will probably be a simple spreadsheet where each row represents a part, and each column represents each other part number that can reference that part.
After doing some head scratching, I came up with a solution, but I want to make sure that I am on the right path.
I am thinking that I would have one table that would serve as a "part master table". It would have every part number enterable by the user and our corresponding part number. Then, in another table, I would have our part number, and all the corresponding associated part numbers and information. Maybe something like this:
What I am concerned about is that there is a better way that I am not aware of. I thought about making a table for each supplier, competitor, that all tied back to ours, and sequentially searching them, but that would not be a good way to approach it. The only problem with my current solution is that I would have potentially several unique part numbers that reference only one of our part numbers. I am only looking for some high level design hints here.
Thanks,
gordon
The data that I will get will probably be a simple spreadsheet where each row represents a part, and each column represents each other part number that can reference that part.
After doing some head scratching, I came up with a solution, but I want to make sure that I am on the right path.
I am thinking that I would have one table that would serve as a "part master table". It would have every part number enterable by the user and our corresponding part number. Then, in another table, I would have our part number, and all the corresponding associated part numbers and information. Maybe something like this:
Code:
Table1
part_nbr
our_part_nbr
Table2
our_part_nbr
mfg1_part_nbr
mfg2_part_nbr
mfg3_part_nbr
comp1_part_nbr
comp2_part_nbr
comp3_part_nbr
vend1_part_nbr
vend2_part_nbr
mil_part_nbr
What I am concerned about is that there is a better way that I am not aware of. I thought about making a table for each supplier, competitor, that all tied back to ours, and sequentially searching them, but that would not be a good way to approach it. The only problem with my current solution is that I would have potentially several unique part numbers that reference only one of our part numbers. I am only looking for some high level design hints here.
Thanks,
gordon