I have 3 tables: STOCK, COLORPRICE, PRODUCT The relationship between them is: PRODUCT.PRODUCT = COLORPRICE.PRODUCT (1 to many) COLORPRICE.EAN = STOCK.EAN (