Question

In: Computer Science

A database needs to be developed that supports a supermarket. (i) Design an entity-relationship diagram that...

A database needs to be developed that supports a supermarket.

(i) Design an entity-relationship diagram that captures, as far as possible, the requirements stated below. (Statements in brackets are additional explanations and not part of the requirements proper.) If you make any assumptions in your design, please write them down. Assumptions, however, must not contradict the requirements.

1. The supermarket sells products. Each product is uniquely identified by its product number. Moreover, a product has price. The supermarket also records how many items of each product are currently on stock.

2. A product can be on special offer. A special offer is valid for a period, which has a start date and an end date. A special offer refers to exactly one product. Two special offers for the same product cannot have overlapping periods. A special offer for a product specifies that a certain number of items of that product are sold at a certain price (e.g., 2 items for $1.99).

3. There is a card scheme for which customers can register. A registered customer holds a customer card. Each registered customer has a customer number, which is unique. For each registered customer the supermarket records the name and the address of the customer and the day when the customer joined the card scheme.

4. When a customer buys one or more items and pays for them, a purchase is being completed. A purchase is uniquely identified by the number of the checkout where the customer pays, together with the date and the time when the purchase is made.

5. Some purchases are made by registered customers.

6. A purchase consists of one or more line items. Within a given purchase, each line item is uniquely identified by its line number. Each line item refers to a unique product. (In fact, the line items correspond to the items of the purchase). Some line items have an additional comment, which is a string. (The comment may say that a special price applies to the product item because it is part of a special offer.)

[20]

Solutions

Expert Solution

ER Diagram:also known as Entity relationship diagram. It is a graphical representation of relationships between the tables or entities in a data base. it explains the logical structure of a database.

Now the ER diagram of a super market database is shown below.

Tables:

1.supplier

2.product

3.offer

4.customer

5.Registeredcustomer

6.department

7.employee


Related Solutions

A new database needs to be developed. You are required to draw the related Entity Relationship...
A new database needs to be developed. You are required to draw the related Entity Relationship Diagram (ERD) that includes the following information: (a) Employee (the company has several employees) (b) Department (each employee is assigned to one department) (c) Payroll (each employee receives his/her pay for the period) (d) Customer (employees sell products to customer) (e) Products (the company offers several products) Note that an employee can sell products to several customers and that every customer can be served...
What role does the entity-relationship (ER) diagram play in the database design process? Discuss the different...
What role does the entity-relationship (ER) diagram play in the database design process? Discuss the different types of information represented in the ER diagram and the symbols used to represent them. How would you approach the diagramming process?
Overview In this lab, you will design an Enhanced Entity Relationship (EER) diagram to improve on...
Overview In this lab, you will design an Enhanced Entity Relationship (EER) diagram to improve on the database design that you have worked on in the previous weeks. The new design will include additional improvements such as: Inheritance Relationships Constraints Union Types A clear and well-documented explanation of all your modifications and the EER diagram. can you please give me an example of how to start this or what am i supposed to do!!!
Database Design Design a database and show the relationship between each tables. I need multiple tables....
Database Design Design a database and show the relationship between each tables. I need multiple tables. *Must meet the requirements for Third Normal Form. These are the information for employee DB. Employee Number, First Name, Last Name, Date of birth, Address, city, state, zip, department, job title, supervisor, health insurance number, health insurance provider, dental insurance number, dental insurance provider, spouse/partner, children, children's ages.
SNOWMOBILE CLUB - Database Development Draw an Entity-Relationship Diagram which must include all entities and their...
SNOWMOBILE CLUB - Database Development Draw an Entity-Relationship Diagram which must include all entities and their attributes. Primary Keys underlined, Foreign Keys labeled, Weak entities double boxed. You have been asked to develop a database to help the Wisconsin Snowmobile Association track their club members. The following are the predefined business rules: 1) Snowmobile Clubs are tracked by Wisconsin county. 2) A club can be assigned to multiple counties. 3) Members can belong to one or more clubs. 4) Some...
I need an example of a composite entity replacing a m:n relationship in an Er diagram....
I need an example of a composite entity replacing a m:n relationship in an Er diagram. Need atleast three entities being used.
In this project you will be provided a set of specifications to create an entity-relationship diagram...
In this project you will be provided a set of specifications to create an entity-relationship diagram and design accompanying table layout using sound relational modeling concepts and practices. The relationships between the entities and the attributes for the entities will be identified and described. This database will provide the foundation for the follow-on project. The following paragraphs provide the background and summary of the business requirements. You are a database consultant with Premier Software, LLC and have been assigned to...
Design a database through the EER diagram to keep track of the teams and games of...
Design a database through the EER diagram to keep track of the teams and games of a sport league. Assume that the following requirements are collected (the English description of cardinal ration and partial/complete participate is NOT required, but you still need to provide the total/partial and cardino ration in your EER diagram) : The database has a collection of TEAM. Each Team has a unique name, players, and owner. The database also keeps the records of PLAYERS. Each player...
business rules and entity-relationship diagram insurance, invoice, patient, appointment, employee
business rules and entity-relationship diagram insurance, invoice, patient, appointment, employee
create an entity relationship diagram to describe the data requirements of the system. Your client is...
create an entity relationship diagram to describe the data requirements of the system. Your client is a local real estate company that wants to automate some of their processes. Here is how some of the business is described: - In a real estate transaction, there is a buyer, a seller, a property, a purchase agreement and a real estate agent - A seller may have one or more properties to sell - A buyer wants to buy only one property...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT