160 likes | 268 Views
Entity Relationship Diagrams (ERDs). Entity Relationship Diagram (ERD). documentation technique to represent relationship between entities in system . Think of entities as “nouns” – nouns on which a company would want to track information. A few examples: Vehicles Accounts Receivable
E N D
Entity Relationship Diagram (ERD) • documentation technique to represent relationship between entitiesin system. • Think of entities as “nouns” – nouns on which a company would want to track information. A few examples: • Vehicles • Accounts Receivable • Customers • Vendors
Entity Relationship Diagram (ERD) • Think of the relationship as a “verb” • The verb connects (relates) one entity to another. A few examples: • Receive • Assign • Prepare • Send
Depends on business rules !! Cardinality between entities • represents the numerical mapping between entities: • one-to-one • one-to-many • many-to-many
Cardinalities Entity Relationship Entity 1 1 Sales- person Car is assigned Customer Company A
Cardinalities Entity Relationship Entity 1 M Sales- person Car is assigned Company B Customer
Cardinalities Entity Relationship Entity 1 M places Order Customer This cardinality is probably true for most businesses.
Cardinalities Entity Relationship Entity M M Vendor Inventory supplies This cardinality would depend on the business.
Describe the business rules represented by the cardinalities in the ERD. VENDOR 1 1 M M P.O. M INVENTORY M 1 M M REC. RPT. 1
Add 3 attributes for each entity. VENDOR 1 1 M M P.O. M INVENTORY M 1 M M REC. RPT. 1
3 attributes for each entity. VENDOR 1 M 1 M P.O. M INVENTORY M 1 M M REC. RPT. 1
Modify the ERD, based on the following information: 1 The Vendor sends an invoice for each shipment.The invoice is matched tothe RR; a Cash Disbursement (CD) is prepared for each invoice. VENDOR 1 M M M P.O. M INVENTORY 1 M M 1 REC. RPT. 13
VENDOR 1 1 M M P.O. M INVENTORY M 1 M M REC. RPT. 1
Add 3 attributes for each new entity. VENDOR 1 1 M M P.O. M INVENTORY M 1 M M REC. RPT. 1