levo

Databases and Distributed Systems

Restructuring data into third normal form

  • 3 things to know
  • A2 Unit 4

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.

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.

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

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.

Fetch, , execute.
decodecompilestore

Blank Blitz makes facts automatic

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

AEncryption is reversible.
BThe stored form could be decrypted.
CA hash cannot be reversed.

Build It gets the exam shape right

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

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