Question: A grocery chain needs a database designed in order to keep track of inventory and sales; the scenario to model is as follows: A customer

A grocery chain needs a database designed in order to keep track of inventory and sales; the scenario to model is as follows: A customer goes to one of the stores to make a purchase, which contains one or more products. The employee ID of the cashier will be stored for the purchase; if the customer is a member of the loyalty program, his membership ID will be associated with the purchase as well (although this is not required). Each product will have a description and current price (applied to all stores); stock inventory count for these products will be tracked for each store. The purchase amount will be the total of all product prices multiplied by their quantity.After the customer pays, the purchase should be marked as paid, and the stock inventory count for all items in the purchase should be reduced for that store accordingly.

--------------------------------------------------------------------- Q1. Read through the above scenario and determine which entities are involved (identify all of the things and decide whether they are entity classes or attributes). Create a simpleERD to show only the entities and the relationships between them (see the first lecture example). Name the relationships (e.g. employs, schedules, etc) but do not show the relationship cardinalities nor any of the attributes. It is expected and perfectly OK to have at least one many-to-manyand/or ternary relationship here, because these will be changed in the next step.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!