You are on page 1of 3

Solutions ERD Class Exercise

Part I:

1.

Order Invoice
raise

Each order gives rise to one and only one invoice.


Each invoice must be raised by one order.
**Each invoice must be raised by one and only one order.

2.
Employee Salesman
act

Each employee may or may not be a salesman. Each salesman must be an employee.
**Each salesman can be acted by many employees.

3.
Customer place Order

Each customer can only place one order with us at one time. i.e. Anyone who has no order outstanding is not a
customer. Each order must be raised by one and only one customer.
**Each customer must place one and only one order.

4. Customer Order
raise

A customer is a customer regardless of the number of orders they currently have outstanding. Each order applies
only to one customer.
**Each customer may raise zero, one or more order(s).
**Each order must be raised by one and only one customer.

5.
Salesman visit
Customer

A salesman can have one or more customers. Any customer is visited by only one salesman.
**Each salesman may visit zero, one or more customer(s).
**Each customer may be visited by zero, one or more salesman(s).
6.

Product comprise Part

Each product that we stock comprises one or many parts. Each part is only used in one product and no others.
**Each product must comprise one or more part(s).
**Each part must be comprised by one and only one part.

7.
Product consist Part

Each of our products consists of one or many parts. Each part may be used in one or more products.
**Each product must consist one or more part(s).
**Each part must be consisted by one or more product(s).

8. Product Part

Each product that we stock consists of one or many parts. Parts may be used in one product only or in several
different products. In addition, parts are stocked for products not made by us, i.e. a part may not be used in any of
our products.
**Each product must consist one or many part(s).

Part II:
Suggest plausible relationship degrees and membership constraints for the following

Entity Types Relationship

a. House, Person Ownership

House own Person

**Each house must be owned by one or many person(s).


**Each person may own zero, one or many house(s).

b. House, Tenant Occupation

House occupy Tenant

**Each house may be occupied by zero, one or many tenant(s).


**Each tenant must occupy one or many house(s).
c. Sales-Area, Customer Has Assigned

assign
Sales-Area Customer

**Each sales-area may assign zero, one or many customer(s).


**Each customer much be assigned to one and only one sales area.

d. Employee, Skill has

Employee has Skill

**Each employee may have zero, one or many skill(s).


**Each skill may have zero, one or many employee(s).

You might also like