In: Computer Science
CREATING AN ERD: An organization’s customers may be individual persons or they may be companies. Each customer is given a customerID and has a DateJoined. Persons have a LastName, FirstName, and PersonAddress. Companies have a TradingName, TradingAddress, and PhoneNo. Customers may be service customers or purchase customers. Purchase customers have a CreditLimit stored for them. A customer may be both a service and a purchase customer. Service customers have maintenance contracts arranged for them. Each contract has a ContractNo, ContractDate, Cost, and EquipmentDetail. Calls made against each contract are recorded. Each call is given a CallNo within the contract. The DateMade and Duration of each call is stored.
Solution:
ER Diagram:
The entity relationship diagram represents the various entities and
the relationship between them which helps us in understanding how
the system works.
The entities are nothing but the real world objects.
These entities are connected using the relationships that are
present between them.
Their attributes are mentioned with them and are the properties of
the entities.
The ER diagram is represented as shown below.
ER Diagram: