01 - Entity Relationship Diagram
01 - Entity Relationship Diagram
Mary William
(ERD)
Entity: It's a person, place, object, event or concept about which the organization
wishes to maintain data.
Types of entity:
Employee Family
1
Ms. Mary William
Types of attribute:
2
Ms. Mary William
Employee Course
manages
Has
prerequis
ite
3
Ms. Mary William
Prescription
Warehouse
4
Ms. Mary William
In case of one to many: Add primary key field of one entity type
(Company) as a foreign key in the table that represents the many entity
type (Employee).
In case of one to one: Add primary key field of the mandatory entity
type as a foreign key in the table that represents the optional entity
type.
Cou.code
Doc.ID
Doc.ID Cou.code
5
Ms. Mary William
4- Business rule:
- Each customer may submit many orders.
- Each order must be submitted by one customer.
One mandatory
One optional
Many mandatory
Many optional