Tutorial 4: ER Diagram - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Tutorial 4: ER Diagram

Description:

Each director/actor may have directed/played in multiple movies. Each movie is directed by a single director. Not every movie has a sequel. 11 ... – PowerPoint PPT presentation

Number of Views:515
Avg rating:3.0/5.0
Slides: 12
Provided by: marily192
Category:

less

Transcript and Presenter's Notes

Title: Tutorial 4: ER Diagram


1
Tutorial 4 ER Diagram
2
  • Question.
  • Complete the diagram to capture the following
    constraints
  • Each student must take exactly one course.
  • Every course must be taken by at least one
    student.

3
  • Complete the diagram to capture the following
    constraints
  • Each student must take exactly one course.
  • Every course must be taken by at least one
    student.

4
  • Question. Which design is better and why?

5
redundancy in office_number and office-location
6
  • Question. What are the differences in the
    following two designs?

7
  • In the first diagram, accounts can be created
    without customers/branches. This is not possible
    in the second design.
  • In the first diagram, many customers can share
    the same account. This is also not possible in
    the second one.

8
  • Question. What are the primary keys for the three
    relationships, respectively?

9
  • owns license
  • participated license
  • involved driver-id, report-number

10
  • Question. Complete the following diagram to
    satisfy these constraints
  • Every director must have directed some movie, but
    not every actor has played in a movie.
  • Each director/actor may have directed/played in
    multiple movies.
  • Each movie is directed by a single director.
  • Not every movie has a sequel.

11
(No Transcript)
Write a Comment
User Comments (0)
About PowerShow.com