Presentation is loading. Please wait.

Presentation is loading. Please wait.

Database design concepts info1408 Lecture 8 Worked example of E:R Modelling.

Similar presentations


Presentation on theme: "Database design concepts info1408 Lecture 8 Worked example of E:R Modelling."— Presentation transcript:

1 Database design concepts info1408 Lecture 8 Worked example of E:R Modelling

2 Objectives We will use a simple scenario We will identify the entities Identify the relationships between the entities ( if any) For each relationship the multiplicity ( or degree) and optionality will be determined

3 To create an E:R Model You would use the results of your fact finding to identify the entities ( as we did last week) In this case we will use a scenario Identify the entities from the scenario

4 The Scenario A small Cinema club runs a number of cinemas throughout the region. The cinema show films. A film is shown several times over a week ( or more) known as a showing. Each film can have several showings. Members book tickets for a particular showing Identify the entities

5 Each entity is represented as a Box

6 Refer back to the scenario and identify the relationships The cinema show films. Therefore there is a relationship between cinema and film Shown by a line- named shown at

7 Identify the properties of the relationship How many cinemas can a film be shown at? How many films can a cinema show? Does a cinema have to show a film in order to be on our database as a cinema? Does a film have to be shown at a cinema in order to be on our database?

8 A film is shown several times over a week ( or more) and in several of the clubs cinemas. Each film can have several showings.

9 Showing and film Relationship name-screens A showing shows how many films? A film can have how many a showings? A film must have a showing to be on database? A showing must have a film to show to be on the database?

10 Add to existing diagram

11 Members book tickets for a particular showing How many bookings can a member make for a showing? A Showing has bookings made by how many members? A showing must have a booking ? A member must have made a booking?

12 Add to diagram

13 Summary The many to many relationships are not appropriate to the final design- we will look at what to do with them next week. We have taken entities and identified the relationships between the entities. Relationships have been described and recorded using the prescribed notation.

14 References Data Analysis for database Design By D R Howe


Download ppt "Database design concepts info1408 Lecture 8 Worked example of E:R Modelling."

Similar presentations


Ads by Google