I have this table:
image of my table
That I need split up into three separate tables.
One table for all the vendors (which I've made), though I only have 4 vendors at the moment: MDTV, LOWE, RYUU and GVHH.
One table for all the SKU ITEM #s (I've also made)
And lastly one table for the Vendor item #s.
That last table is tricky because I'm trying to make my database expandable (200+ different vendors), so I can't have separate fields for each vendor.
However, the vendor item #s must match the sku item #s.
for example on line 1 the [SKU ITEM #] is 123, the vendor named "MDTV" also has an item # on line 1 which is 4987.
I have another vendor named "RYUU" that also has a item # of 464.
The other two vendors don't have item #s on that line.
If I make a separate table containing just vendor item #s, keep in mind that vendors should NOT have their own separate tables, how do I keep that link between the SKU item # and the vendor item #s?
Any suggestions on what I can do?
Should I choose a different design other than the three tables?
Ultimately, I need to have the database automatically look at whatever is in the vendor 1 field, check if it can ship that day (if not look if vendor 2 can ship and use that, if not that check vendor3 and so on), and add the order to the VendorOrder field.
I'm far from the coding step though, right now I need to make a better database.
image of my table
That I need split up into three separate tables.
One table for all the vendors (which I've made), though I only have 4 vendors at the moment: MDTV, LOWE, RYUU and GVHH.
One table for all the SKU ITEM #s (I've also made)
And lastly one table for the Vendor item #s.
That last table is tricky because I'm trying to make my database expandable (200+ different vendors), so I can't have separate fields for each vendor.
However, the vendor item #s must match the sku item #s.
for example on line 1 the [SKU ITEM #] is 123, the vendor named "MDTV" also has an item # on line 1 which is 4987.
I have another vendor named "RYUU" that also has a item # of 464.
The other two vendors don't have item #s on that line.
If I make a separate table containing just vendor item #s, keep in mind that vendors should NOT have their own separate tables, how do I keep that link between the SKU item # and the vendor item #s?
Any suggestions on what I can do?
Should I choose a different design other than the three tables?
Ultimately, I need to have the database automatically look at whatever is in the vendor 1 field, check if it can ship that day (if not look if vendor 2 can ship and use that, if not that check vendor3 and so on), and add the order to the VendorOrder field.
I'm far from the coding step though, right now I need to make a better database.
Comment