Quote:
Originally Posted by richardfennah
Could you literally explain what columns I should make to store the prices?
|
sure, no problem
CREATE TABLE CustomerPrices
(
cust_id INTEGER NOT NULL
, FOREIGN KEY (cust_id) REFERENCES Customers (id)
,
product_id INTEGER NOT NULL
, FOREIGN KEY (product_id) REFERENCES Products (id)
, PRIMARY KEY (cust_id,product_id)
,
price DECIMAL(9,2) NOT NULL
);
those are the columns you will need