Problem

Wally Los Gatos, owner of Wally’s Wonderful World of Wallcoverings, has hired you as a c...

Wally Los Gatos, owner of Wally’s Wonderful World of Wallcoverings, has hired you as a consultant to design a database management system for his chain of three stores that sells wallpaper and accessories. He would like to track sales, customers, and employees. After an initial meeting with Wally, you have developed a list of business rules and specifications to begin the design of an E-R model:

• Customers place orders through a branch.

• Wally would like to track the following about customers: Name, Address, City, State, Zip Code, Telephone, Date of Birth, and Primary Language.

• A customer may place many orders.

• A customer does not always have to order through the same branch all the time.

• Customers may have one or more accounts, although they may also have no accounts.

• The following information needs to be recorded about accounts: Balance, Last payment date, Last payment amount, and Type.

• A branch may have many customers.

• The following information about each branch needs to be recorded: Branch Number, Location (Address, City, State, Zip Code), and Square Footage.

• A branch may sell all items or may only sell certain items.

• Orders are composed of one or more items.

• The following information about each order needs to be recorded: Order Date and Credit Authorization Status.

• Items may be sold by one or more branches.

• We wish to record the following about each item: Description, Color, Size, Pattern, and Type.

• An item can be composed of multiple items; for example, a dining room wallcovering set (item 20) may consist of wallpaper (item 22) and borders (item 23).

• Wally employs 56 employees.

• He would like to track the following information about employees: Name, Address (Street, City, State, Zip Code), Telephone, Date of Hire, Title, Salary, Skill, and Age.

• Each employee works in one and only one branch.

• Each employee may have one or more dependents. We wish to record the name of the dependent as well as the age and relationship.

• Employees can have one or more skills.

Based upon this information, draw an E-R model. Indicate any assumptions that you have made. Also, draw a data model for this situation using the tool you have been told to use in your course.

Step-by-Step Solution

Solution 1

Entity Relationship (E-R) diagram for database management system of Wally’s Wonderful World of Wall coverings:

• Entity-Relationship diagram for database management system of Wally’s Wonderful World of Wall coverings is shown below:

C:\Users\300889\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Outlook\XNEWY8E1\10943-2-28PE_fig1.jpg

In the above ER diagram:

This system contains the six entities such as EMPLOYEE, DEPENDENT, BRANCH, ITEM, CUSTOMER, and ACCOUNT.

EMPLOYEE entity type:

• The entity EMPLOYEE is identified by the identifier has EMPLOYEE ID.

• The attributes of the EMPLOYEE entity has Employee Name, Employee Address, Employee Phone, Employee Title, Employee Salary, Employee Age, and Employee Hire Date.

• The multivalued attribute of the EMPLOYEE entity has Employee Skill.

• The composed attribute of the EMPLOYEE entity has Street, City, State, and ZipCode.

BRANCH entity type:

• The entity BRANCH is identified by the identifier has Branch No.

• The attributes of the BRANCH entity has Branch Location and Square Footage.

• The multivalued attribute of the BRANCH entity has Address, City, State, and ZipCode.

CUSTOMER entity type:

• The entity CUSTOMER is identified by the identifier has Customer ID.

• The attributes of the CUSTOMER entity has Customer Name, Customer Street Address, Customer City, Customer State, Customer Zip Code, Customer Phone, Customer DOB, and Customer Primary Language.

ACCOUNT entity type:

• The entity ACCOUNT is identified by the identifier has Account No.

• The attributes of the ACCOUNT entity has Account Type, Account Balance, Account Payment Date, and Account Payment Amount.

ITEM entity type:

• The entity ITEM is identified by the identifier has Item ID.

• The attributes of the ITEM entity has Item Description, Item Type, Item Pattern, Item Color, and Item Size.

DEPENDENT weak entity type:

• The weak entity DEPENDENT is identified by the identifier has Dependent Name.

• The attributes of the DEPENDENT entity has Dependent Relationship and Department Age.

Carries relationship:

The weak relationship between the entity EMPLOYEE and entity DEPENDENT is “Carries” and the cardinality relationship is “mandatory one to optional many”.

• This is because; employee may have more than one dependent.

Employs relationship:

The relationship between the entity EMPLOYEE and entity BRANCH is “Employs” and the cardinality relationship is “mandatory many to mandatory one”.

• This is because; employee must work in exactly one branch.

Sells relationship:

The weak relationship between the entity BRANCH and entity ITEM is “Sells” and the cardinality relationship is “mandatory many to mandatory many”.

• This is because; branch may sell all items or may sell only one item.

Serves relationship:

The relationship between the entity BRANCH and entity CUSTOMER is “Serves” and the cardinality relationship is “mandatory many to optional many”.

• This is because; branch has more than one customer and customer may or may not have one or more branch.

Contains relationship:

The relationship between the entity ITEM and associative entity ORDER is “Contains” and the cardinality relationship is “mandatory many to optional many”.

• This is because; orders are collected from one or more items.

Owns relationship:

The relationship between the entity CUSTOMER and entity ACCOUNT is “Owns” and the cardinality relationship is “mandatory one to optional many”.

• This is because; customer may have more than one account or no account.

Consists Of relationship:

The relationship between the entities ITEM is “Consists Of” and the cardinality relationship is “optional many to optional many”.

• This is because; item holds more than one items.

ORDER associative entity type:

• The associative entity ORDER between the entity BRANCH and entity CUSTOMER.

• It contains the attributes of the “Order Date” and “Order Credit Status”.

o The cardinality relationship between entity BRANCH and associative entity ORDER is “mandatory one to optional many”.

o The cardinality relationship between entity CUSTOMER and associative entity ORDER is “mandatory one to optional many”.

Add your Solution
Textbook Solutions and Answers Search