Professional Documents
Culture Documents
Solutions ERD Class Exercise
Solutions ERD Class Exercise
Part I:
1.
Order Invoice
raise
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.
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
assign
Sales-Area Customer