I’m wondering if this would be the best way to build a table for an item that can have more than 1 price. Each product is identified by its model_number. Should I use a prefix before the model_number for each individual seller? I can’t use model_number for the primary key. For example:
seller_product_id model_number seller price
SELLER_1_MODEL_NUMBER MODEL_NUMBER seller_1 9.99
SELLER_2_MODEL_NUMBER MODEL_NUMBER seller_2 19.99
For the sake of loose coupling, I suggest you build seperate
ItemsandPricetables, and have another table (called Junction table)Item_Pricewhich maps many items to many prices as you like.This is called Many-to-Many relationship
Basically, it links an
Itemwith its itemId to aPricewith priceId, and stores this link in anItem_PriceitemPriceId (or whatever you call the 3rd primary key)Here’s a sample diagram EDIT: sorry about the previous diagram.

Here’s a sample SQL DDL of 3 tables, plus 2 junction tables to associate Item to Price, and Seller to Item.