Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 The Entity-Relationship Model Chapter 2. 2 Exercise  What can you say about policy of the bank from the ER diagram?  What can you say about the policy.

Similar presentations


Presentation on theme: "1 The Entity-Relationship Model Chapter 2. 2 Exercise  What can you say about policy of the bank from the ER diagram?  What can you say about the policy."— Presentation transcript:

1 1 The Entity-Relationship Model Chapter 2

2 2 Exercise  What can you say about policy of the bank from the ER diagram?  What can you say about the policy of the company? balance acct# Account CustAcct name Customer ssn addr deptid budget Dept Manages name Employees ssn lot

3 3 Exercise  What can you say about policy of the bank from the ER diagram? 1)No joint account; a customer can have multiple accounts 2)Unique SSN for Customer and acct# for Account 3)Can a customer exist in the DB without having an account? 4)Can an account exist without a customer? balance acct# Account CustAcct name Customer ssn addr

4 4 Exercise  What can you say about the policy of the company? 1)Each dept must have a single manager 2)A manager can manage multiple depts 3)Unique SSN for Customer and deptid for Dept 4)Can a dept exist in the DB without having a manager? deptid budget Dept Manages name Employees ssn lot

5 5 Design Exercise  Design a DB using ER, and sketch the resulting diagram. State any important assumptions you made in reaching the design. Show explicitly whether relationships are 1-1, 1-M, or N-M.  UVA registrar’s office: It maintains data about each class, including the instructor, students, enrollment, time and place of the class meetings. For each student-class pair, a grade is recorded.  Hospital: It maintains all patients visited, including age and address. It also keeps track of the information about billing, visits, data, reason for visit, and treatment.


Download ppt "1 The Entity-Relationship Model Chapter 2. 2 Exercise  What can you say about policy of the bank from the ER diagram?  What can you say about the policy."

Similar presentations


Ads by Google