The EntityRelationship Model - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

The EntityRelationship Model

Description:

Exercise. What can you say about policy of the bank from the ER diagram? ... Design Exercise. Design a DB using ER, and sketch the resulting diagram. ... – PowerPoint PPT presentation

Number of Views:149
Avg rating:3.0/5.0
Slides: 6
Provided by: RaghuRamak245
Category:

less

Transcript and Presenter's Notes

Title: The EntityRelationship Model


1
The Entity-Relationship Model
  • Chapter 2

2
Exercise
acct
balance
  • What can you say about policy of the bank from
    the ER diagram?
  • What can you say about the policy of the company?

CustAcct
Account
Manages
3
Exercise
acct
balance
CustAcct
Account
  • What can you say about policy of the bank from
    the ER diagram?
  • No joint account a customer can have multiple
    accounts
  • Unique SSN for Customer and acct for Account
  • Can a customer exist in the DB without having an
    account?
  • Can an account exist without a customer?

4
Exercise
Manages
  • What can you say about the policy of the company?
  • Each dept must have a single manager
  • A manager can manage multiple depts
  • Unique SSN for Customer and deptid for Dept
  • Can a dept exist in the DB without having a
    manager?

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 registrars 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.
Write a Comment
User Comments (0)
About PowerShow.com