levo

Database Concepts and Entity Relationship Modelling

Building an ER model for a problem

  • 3 things to know
  • A2 Unit 1

Overview

Identifying entities and attributes from a description, choosing a key for each, stating the degree and optionality of every relationship, resolving a many-to-many with a link entity, and worked models for a library, a driving school and a cinema.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Process

What are the steps in producing an ER model from a description of a problem?

Key term

Produce the ER model for a library that lends copies of books to members.

Key term

Produce the ER model for a driving school recording lessons.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What are the steps in producing an ER model from a description of a problem?

    Model answer

    Identify the things the business keeps records about and make each an entity; list what must be known about each and make those attributes; choose a key for every entity; state the degree and optionality of every association; and resolve every many-to-many relationship with a link entity.

  2. 2

    Produce the ER model for a library that lends copies of books to members.

    Model answer

    The entities are Book, Copy, Member and Loan. One Book has many Copies; one Copy may be the subject of many Loans over time; one Member may take out many Loans. Loan resolves the many-to-many association between Copy and Member, and carries the date out and the date due.

  3. 3

    Produce the ER model for a driving school recording lessons.

    Model answer

    The entities are Instructor, Pupil and Lesson. One Instructor gives many Lessons and one Pupil takes many Lessons, so Lesson is the link entity resolving the many-to-many association between them, carrying the date, the time and the vehicle used.

  4. 4

    Produce the ER model for a cinema recording bookings for showings.

    Model answer

    The entities are Film, Showing, Customer and Booking. One Film has many Showings; one Customer makes many Bookings; one Showing is the subject of many Bookings. Booking is the link entity between Customer and Showing and carries the seats reserved.

  5. 5

    Why is the link entity in these examples usually a real thing in the business?

    Model answer

    A link entity is normally something the business already recognises and keeps records about — a loan, a lesson, a booking, an enrolment — which is why it has attributes of its own and is not merely a technical device.

  6. 6

    How do you decide whether something is an entity or an attribute?

    Model answer

    If the business keeps several pieces of information about it, or several other things refer to it, it is an entity. If it is a single value describing something else and nothing else refers to it, it is an attribute.

Other ways to work this

The same content, four other ways.

What is inside Levo

Six ways to work the same material.

1Closed book
2Open book
3Closed book

The 3-step method, run for you

Answer cold, learn it, then prove it stuck. Levo tracks the jump between your first attempt and your last.

Software and the Development Environment
Defining Data: Types, Variables and Classes
Program Control Structures
Objects, Classes and Data Structures

Cram a whole paper in one sitting

Sort every topic into what you know and what you do not, then drill only the weak ones.

A null is the of one.
absencepresencetype

Blank Blitz makes facts automatic

Rapid timed gap-fills on the terms and numbers you need to recall without thinking.

AA null means no value has been recorded.
BZero and an empty string are values.
CA null is the absence of a value.

Build It gets the exam shape right

Assemble a full-mark answer from its marking points, in the order an examiner wants them.

An error is the mistake a person made.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The traps are the mistakes students actually make.

721941163128510

Brain Breaks between sessions

Short focus games to reset attention, so the next set lands better than the last.

Every question in Database Concepts and Entity Relationship Modelling, on a schedule.

Attempt a question from memory, write the correct version, then attempt it again. Levo records the jump between your first attempt and your last, and brings each question back on the day you are due to forget it.

Or £46 a year, about £3.83 a month. Cancel anytime.