levo

Databases and Distributed Systems

Restructuring data into third normal form

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

Overview

Recall questions on the key, the whole key and nothing but the key, worked repairs of a partial and a transitive dependency, removing a repeating group, resolving a many-to-many with a link table, derived values, and why the work is done on paper first.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

How is a table carrying a transitive dependency repaired, and how is a repeating group removed?

Key term

State the mantra summarising third normal form.

Key term

A table holds OrderID, ProductID, Quantity, ProductName and ProductPrice, keyed on OrderID and ProductID. Which normal form does it fail?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    State the mantra summarising third normal form.

    Model answer

    Every non-key attribute depends on the key, the whole key, and nothing but the key.

  2. 2

    A table holds OrderID, ProductID, Quantity, ProductName and ProductPrice, keyed on OrderID and ProductID. Which normal form does it fail?

    Model answer

    Second, because ProductName and ProductPrice depend on ProductID alone, which is only part of the key.

  3. 3

    A table holds StudentID, StudentName, TutorID and TutorRoom, keyed on StudentID. Which normal form does it fail?

    Model answer

    Third, because TutorRoom depends on TutorID, which is not the key.

  4. 4

    How is a repeating group removed to reach first normal form?

    Model answer

    Move the repeating attributes into a separate table whose key includes the original key plus whatever distinguishes the repeats.

  5. 5

    A library table lists BookID and up to three BorrowerIDs in one row. Put it into first normal form.

    Model answer

    Replace the three columns with a Loan table holding one row per loan, keyed on BookID and BorrowerID or on a loan number.

  6. 6

    Why must a many-to-many relationship be resolved before normalisation is complete?

    Model answer

    Neither table can hold the other's key without repeating, so a link table with both foreign keys as its composite key is required.

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.

Hardware: Architecture, Memory and Storage
Networks and Data Transmission
Logic Gates and Boolean Algebra
Data Representation and Data Types

Cram the night before, weakest topic first

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

Fetch, , execute.
decodecompilestore

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.

A bit is a single binary digit.
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 and Distributed Systems, 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.