levo

Normalisation and Structured Query Language

Third normal form

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

Overview

Transitive dependency, mnemonic for third normal form and relationship between third normal form and the ER model.

What you need to know

Answer each one before you reveal it.

Your recallNot started
Key term

State the mnemonic for third normal form.

Key term

What anomaly does a transitive dependency cause?

Key term

Why is third normal form usually treated as far enough?

Questions from this subtopic

Each one with the model answer underneath.

  1. 1

    When is data in third normal form?

    Model answer

    Data is in third normal form when it is in second normal form and no non-key attribute depends on another non-key attribute.

  2. 2

    What is a transitive dependency?

    Model answer

    A transitive dependency exists where the key determines one non-key attribute, which in turn determines another. The employee number determines the department code, and the department code determines the department name.

  3. 3

    How is a transitive dependency removed?

    Model answer

    The attribute that does the determining, together with the attributes it determines, moves to a new table keyed on the determining attribute, which stays in the original table as a foreign key.

  4. 4

    Take an Employee table holding employee number, name, department code and department name to third normal form.

    Model answer

    DepartmentName depends on DepartmentCode rather than on EmployeeNo, so DepartmentCode and DepartmentName move to a Department table keyed on DepartmentCode. Employee keeps EmployeeNo, Name and DepartmentCode as a foreign key.

  5. 5

    State the mnemonic for third normal form.

    Model answer

    Every attribute depends on the key, the whole key and nothing but the key: the key gives first normal form, the whole key gives second, and nothing but the key gives third.

  6. 6

    Take a Product table holding product code, description, unit price, supplier code and supplier name to third normal form.

    Model answer

    SupplierName depends on SupplierCode, which is a transitive dependency, so both move to a Supplier table keyed on SupplierCode. Product keeps the code, description, unit price and SupplierCode as a foreign key.

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.

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

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 null is the of one.
absencepresencetype

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.

An error is the mistake a person made.
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 Normalisation and Structured Query Language, 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.