Hi all,
Help would be appreciated please ;-)
Okay I have a client who wants to set up a web site to sell products …
The client does not hold any stock … everything is dispatched from the Distributor, here are what the tables look like:
--ProductsTbl--
*PrdtID
CatID
DistID
--CustTbl--
*CustID
--CategaryTbl--
*CatID
--DistTbl--
*DistID
--OrderTbl--
*OrderID
CustID
--OrderDetailsTbl--
*OrderDetailsID
OrderID
PrdtID
DistID
The relationships are:
CatTbl 8PrductsTbl (via CatID)
CustTbl 8OrdersTbl (via CustID)
OrderTbl 8OrderDetails (via OrderID)
PrdtTbl 8OrderDetails (via PrdtID)
How do I link the distributor … since they can sell many Products & a Product can have many Distributors. is it worth doing another table that hold this info but do not assign a key filed to it, in order to link the Distributor the the PrdtTbl & the OrderDetailsTbl?
TIA
Help would be appreciated please ;-)
Okay I have a client who wants to set up a web site to sell products …
The client does not hold any stock … everything is dispatched from the Distributor, here are what the tables look like:
--ProductsTbl--
*PrdtID
CatID
DistID
--CustTbl--
*CustID
--CategaryTbl--
*CatID
--DistTbl--
*DistID
--OrderTbl--
*OrderID
CustID
--OrderDetailsTbl--
*OrderDetailsID
OrderID
PrdtID
DistID
The relationships are:
CatTbl 8PrductsTbl (via CatID)
CustTbl 8OrdersTbl (via CustID)
OrderTbl 8OrderDetails (via OrderID)
PrdtTbl 8OrderDetails (via PrdtID)
How do I link the distributor … since they can sell many Products & a Product can have many Distributors. is it worth doing another table that hold this info but do not assign a key filed to it, in order to link the Distributor the the PrdtTbl & the OrderDetailsTbl?
TIA