Right now I'm creating an application to manage the inventory. We receive products very often and usually they have different expiration date or price. Example:
RECEIPT PROVIDER PRODUCT PRODUCT EXPIRATION DATE PRICE QUANTITY
2125 IQT PLASTIC BAG 10/21/2012 2.35 30
2126 MDU PLASTIC BAG 05/03/2012 2.45 60
2127 PRADO PLASTIC BAG 10/21/2012 2.30 10
PRODUCT NAME EXPIRATION DATE PRICE QUANTITY
1001 PLASTIC BAG 10/21/2012 2.35 30
1001 PLASTIC BAG 05/03/2012 2.45 50
1001 PLASTIC BAG 10/21/2012 2.30 10
My question is if I should make EXPIRATION DATE and PRICE Primary Keys also so I'm available to register products with different parameters. Or I should create a double PK of PRODUCT ID and RECEIPT ID.