Answer:
Apartment (1)=====> (N) Purchases (M) =====> Product(1).
Step-by-step explanation:
So, in this question we are given the following; Name, Apt # , Products, Price and Quantity. With this data or parameters or information we will be able to know that there should be another parameters in a table which are;
=> Apartment: with this parameter and the apt # each person or Individual can be Identifed.
=> Purchases: this table will be about the details of the person or Individuals the bought the products and what quantity was bought.
=> Product: here, this parameter can be used in saving or storing the name of each products and the prices of each one of them.
Hence;
(1). APARTMENT = Apt#, Name => where Apt# will be the primary key because it is unique.
(2). PRODUCTS= Products, Price => where product is the unique key.
(3). PURCHASES = Apt #, product quantity => where Apt # is a foreign key and an attribute of product in the ''purchases" table.
Kindly check the attachment for the diagram