levo

Normalisation and Structured Query Language

Third normal form

  • 3 things to know
  • A2 Unit 1

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.

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 Normalisation and Structured Query Language, 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.