Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions