levo

Databases

Entity-relationship modelling

  • 3 things to know
  • A2 Unit 1
Start revising · £5/month

Overview

Entity-relationship model, one-to-one relationship and one-to-many relationship.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

Why can a many-to-many relationship not be implemented directly?

Key term

What is meant by the optionality of a relationship?

Key term

Produce the entity-relationship model for a library that lends copies of books to members.

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    What is an entity-relationship model?

    Model answer

    An entity-relationship model is a diagram showing the entities a system must hold data about, the relationships between them, and the degree of each relationship. It is the standard way of agreeing the logical structure of a database before it is built.

  2. 2

    What are the three degrees of relationship shown in an entity-relationship model?

    Model answer

    The three degrees are one-to-one, one-to-many and many-to-many, describing how many occurrences of each entity may be associated with an occurrence of the other.

  3. 3

    Give an example of a one-to-one relationship.

    Model answer

    An employee has one company car and a company car is allocated to one employee, so the relationship between Employee and Car is one-to-one.

  4. 4

    Give an example of a one-to-many relationship.

    Model answer

    One customer may place many orders but each order is placed by exactly one customer, so the relationship between Customer and Order is one-to-many.

  5. 5

    Give an example of a many-to-many relationship.

    Model answer

    A student studies many courses and a course is studied by many students, so the relationship between Student and Course is many-to-many.

  6. 6

    How is a one-to-many relationship implemented in tables?

    Model answer

    The primary key of the table on the one side is placed into the table on the many side as a foreign key, so each order carries the customer number of the customer who placed it.

Other ways to work this

The same content, four other ways.

Everything in your subscription

Runs, plus a mode for every other kind of session.

1Flash
2Imposter
3Fade
4Brain dump

Learn every subtopic in runs of four questions

Facts flash and fade, a wrong word hides in some of them, and a brain dump decides which questions are locked in.

Systems Analysis and Development Approaches
Design, Development and Testing
Implementation and System Security
Programming

Cram the night before, weakest topic first

A quick scan finds your weakest topics. Recall each fact you missed three times in a row.

A check requires a value.
presencerangeformat

Blank Blitz consolidates the facts

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

✓What it iscovered
~Why it happenspartly there
How long it lastsnot there yet

Explain It tests your understanding

Explain a concept in your own words and see which of its points you covered.

One byte is made up of 8 bits.
TrueFalse

Test It catches misconceptions

Spot the fault in a statement. The faults are the mistakes students make most often.

721941163128510

Brain Breaks between sessions

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

Every question in Databases, on a schedule.

Learn it in runs of four questions, each ending on a brain dump against the clock. Every question you lock in comes back the next day, then at longer gaps, each time just before you would forget it.

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